This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
-Wendif-labels is actually the default.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 18 Jun 2014 13:06:26 +0000 (09:06 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 18 Jun 2014 18:14:28 +0000 (14:14 -0400)
Has been AFAICT for years / always, the documentation just
had it wrong in pre-4.0 gccs.

cflags.SH

index 21f1bbb..abf721f 100755 (executable)
--- a/cflags.SH
+++ b/cflags.SH
@@ -164,7 +164,7 @@ Intel*) ;; # # Is that you, Intel C++?
 # since -std=c89 -pedantic implies the -Werror=...
 *)  for opt in -ansi -std=c89 -W -Wextra \
                -Werror=declaration-after-statement \
 # since -std=c89 -pedantic implies the -Werror=...
 *)  for opt in -ansi -std=c89 -W -Wextra \
                -Werror=declaration-after-statement \
-               -Wendif-labels -Wc++-compat -Wwrite-strings
+               -Wc++-compat -Wwrite-strings
     do
        case " $ccflags " in
        *" $opt "*) ;; # Skip if already there.
     do
        case " $ccflags " in
        *" $opt "*) ;; # Skip if already there.