From: Steve Peters Date: Wed, 21 Mar 2007 22:44:10 +0000 (+0000) Subject: Make gcc warn in case code is not C++ compatible. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c94db568e030a227855e08f584b1bff860be0cf5;p=p5sagit%2Fp5-mst-13.2.git Make gcc warn in case code is not C++ compatible. p4raw-id: //depot/perl@30672 --- diff --git a/cflags.SH b/cflags.SH index fe4bacc..8f9c249 100755 --- a/cflags.SH +++ b/cflags.SH @@ -119,7 +119,7 @@ case "$gccversion" in '') ;; [12]*) ;; # gcc versions 1 (gasp!) and 2 are not good for this. Intel*) ;; # # Is that you, Intel C++? -*) for opt in -ansi -pedantic -std=c89 -W -Wextra -Wdeclaration-after-statement -Wendif-labels +*) for opt in -ansi -pedantic -std=c89 -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat do case " $ccflags " in *" $opt "*) ;; # Skip if already there.