]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - make/unit-cc.pl
Fix warnings from BSD build and work around the failures of BSD make
[user/henk/code/inspircd.git] / make / unit-cc.pl
index 75c206d8c0a8fc7f47b7e575268b0c8f45ce4f75..d4786b8fee330213e4d0d087ded9c9f038f5f0fc 100755 (executable)
@@ -4,16 +4,16 @@ use warnings;
 BEGIN { push @INC, $ENV{SOURCEPATH}; }
 use make::configure;
 
-my $file = shift;
+my $out = shift;
 my $verbose;
 
-if ($file =~ /^-/) {
-       $_ = $file;
-       $file = shift;
+if ($out =~ /^-/) {
+       $_ = $out;
+       $out = shift;
        $verbose = /v/;
 }
 
-my $out = shift;
+my $file = shift;
 
 my $cflags = $ENV{CXXFLAGS};
 $cflags =~ s/ -pedantic// if nopedantic($file);