This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
remove -Wdeclaration-after-statement scan from Configure
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 12 Sep 2006 07:19:32 +0000 (10:19 +0300)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Wed, 13 Sep 2006 06:48:05 +0000 (06:48 +0000)
Message-ID: <45063554.1040301@iki.fi>

p4raw-id: //depot/metaconfig@28828

U/compline/ccflags.U

index 164f16d..59848ef 100644 (file)
@@ -215,20 +215,6 @@ default|recommended)
                else
                        echo "Nope, it doesn't, but that's ok." 2>&1
                fi
-
-               echo "Checking if your compiler accepts -Wdeclaration-after-statement" 2>&1
-               echo 'int main(void) { return 0; }' > gcctest.c
-               if $cc -Wdeclaration-after-statement -o gcctest gcctest.c; then
-                       echo "Yes, it does." 2>&1
-                       case "$ccflags" in
-                       *-Wdeclaration-after-statement*)
-                               echo "Leaving current flags $ccflags alone." 2>&1
-                               ;;
-                       *) dflt="$dflt -Wdeclaration-after-statement" ;;
-                       esac
-               else
-                       echo "Nope, it doesn't, but that's ok." 2>&1
-               fi
                ;;
        esac
        ;;