diff options
author | Paul Green <Paul.Green@stratus.com> | 2006-06-18 15:41:50 -0400 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-06-19 11:27:03 +0000 |
commit | ec2577303395c0e08a228d8fee07de97b4765560 (patch) | |
tree | d14b5d1b426e96a8aace04f4585a09d1bca989d1 /cflags.SH | |
parent | f9e705e84896ce390b7b030e30d69a681032f6b1 (diff) | |
download | perl-ec2577303395c0e08a228d8fee07de97b4765560.tar.gz |
RE: [PATCH] cflags.SH: rework the gcc warnings selection
From: "Green, Paul" <Paul.Green@stratus.com>
Message-ID: <F5F42E77A43DD944B6D664B00A5401CB02026106@EXNA.corp.stratus.com>
p4raw-id: //depot/perl@28402
Diffstat (limited to 'cflags.SH')
-rwxr-xr-x | cflags.SH | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -181,12 +181,14 @@ Intel*) ;; do case " $ccflags " in *"-W$opt "*) ;; - *) case "`echo | $cc -W$opt -E - 2>&1`" in + *) case "`echo >_cflags.c | $cc -W$opt -c _cflags.c -o _cflags.o 2>&1`" in *"unrecognized"*) ;; + *"Invalid"*) ;; *) warn="$warn -W$opt" ;; esac ;; esac + rm -f _cflags.c cflags.o done ;; esac |