X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=bin%2Fblhc;h=b0ab4a62736860594a8273db34d00d2a7f8d0026;hp=b57f470ba1de315dfd2687566e784b0b1af8ea2f;hb=93540e07ace91544bd5e72f509d6b83744d98e07;hpb=d9b1d778db739a9d5b3a26aa5e43e52f9c7b569d diff --git a/bin/blhc b/bin/blhc index b57f470..b0ab4a6 100755 --- a/bin/blhc +++ b/bin/blhc @@ -153,8 +153,7 @@ my @def_cflags = ( ); my @def_cflags_format = ( '-Wformat', - '-Wformat-security', - '-Werror=format-security', + '-Werror=format-security', # implies -Wformat-security ); my @def_cflags_fortify = ( # fortify needs at least -O1, but -O2 is recommended anyway @@ -450,8 +449,7 @@ if (not Getopt::Long::GetOptions( 'color' => \$option_color, 'arch=s' => \$option_arch, 'buildd' => \$option_buildd, - ) - or scalar @ARGV == 0) { + )) { require Pod::Usage; Pod::Usage::pod2usage(2); } @@ -478,6 +476,12 @@ along with this program. If not, see . exit 0; } +# Arguments missing. +if (scalar @ARGV == 0) { + require Pod::Usage; + Pod::Usage::pod2usage(2); +} + # Don't load Term::ANSIColor in buildd mode because Term::ANSIColor is not # installed on Debian's buildds. if (not $option_buildd) {