]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - bin/blhc
Accept -Wformat=2 because it implies -Wformat.
[blhc/blhc.git] / bin / blhc
index 9525baa33c7675c17c4356c063e721660f2638af..b77420d1e9af4fea72704cc834cdea74abd5e9a6 100755 (executable)
--- a/bin/blhc
+++ b/bin/blhc
@@ -182,7 +182,7 @@ my @def_cflags = (
     '-O(?:2|3)',
 );
 my @def_cflags_format = (
-    '-Wformat',
+    '-Wformat(?:=2)?', # -Wformat=2 implies -Wformat, accept it too
     '-Werror=format-security', # implies -Wformat-security
 );
 my @def_cflags_fortify = (
@@ -251,6 +251,7 @@ my @flag_refs_all = (
 # stores string values of flag regexps above, see compile_flag_regexp().
 my %flag_renames = (
     '-O(?:2|3)'         => '-O2',
+    '-Wformat(?:=2)?'   => '-Wformat',
     '-Wl,(?:-z,)?relro' => '-Wl,-z,relro',
     '-Wl,(?:-z,)?now'   => '-Wl,-z,now',
 );