From: Simon Ruderich Date: Wed, 14 Aug 2013 13:34:38 +0000 (+0200) Subject: Only assign @cflags_ada if it's used. X-Git-Tag: 0.05~21 X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=commitdiff_plain;h=8bb0bc6382d4f8b3f957cd3ab0546e6cbb750beb;hp=4a632b4ff1fd63e85196fe3fcbea273d75b4b4ed;ds=sidebyside Only assign @cflags_ada if it's used. --- diff --git a/bin/blhc b/bin/blhc index b5177bd..3ee8537 100755 --- a/bin/blhc +++ b/bin/blhc @@ -977,8 +977,8 @@ foreach my $file (@ARGV) { # Stores normal CFLAGS when @cflags_ada are temporarily used. my @cflags_backup; - # Ada CFLAGS. - my @cflags_ada = @cflags; + # Ada CFLAGS, only set if ada is used. + my @cflags_ada; # Ada doesn't support format hardening flags, see #680117 for more # information. Filter them out if ada is used. if ($ada and $harden_format) {