X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=inline;f=bin%2Fblhc;h=b77420d1e9af4fea72704cc834cdea74abd5e9a6;hb=ab7bee2bcb8c8ad131cec611e67c0b93fba2d32b;hp=9525baa33c7675c17c4356c063e721660f2638af;hpb=fbfa7bab6a0c7f1705ca56a37b1ccc1d5d3c5288;p=blhc%2Fblhc.git diff --git a/bin/blhc b/bin/blhc index 9525baa..b77420d 100755 --- 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', );