perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject -Wdeclaration-after-statement is not recognized by gcc 3.3.5 on openbsd3.7
Date Tue, 13 Dec 2005 23:04:56 GMT
The insertion of -Wdeclaration-after-statement breaks the build as the 
following gcc version doesn't support it:

cc -I/home/stas/src/mod_perl-2.0.2/src/modules/perl 
-I/home/stas/httpd/prefork-2.0.55/include -I/usr/local/include 
-I/home/stas/httpd/prefork-2.0.55/include -fno-strict-aliasing 
-fno-delete-null-pointer-checks -pipe -I/usr/local/include 
-I/usr/libdata/perl5/i386-openbsd/5.8.6/CORE -DMOD_PERL -Wall 
-Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror 
-DAP_DEBUG -DAP_HAVE_DESIGNATED_INITIALIZER -Wdeclaration-after-statement 
              d_perl.c && mv mod_perl.o mod_perl.lo
cc1: error: unrecognized option `-Wdeclaration-after-stat
*** Error code 1

gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.7/3.3.5/specs
Configured with:
Thread model: single
gcc version 3.3.5 (propolice)

Not sure what to do about it, the mp2 build code assumes that any gcc 
above 3.3.2 should have it:

         if ($self->has_gcc_version('3.3.2') &&
             $ccopts !~ /declaration-after-statement/) {
             debug "Adding -Wdeclaration-after-statement to ccopts";
             $ccopts .= " -Wdeclaration-after-statement";

Stas Bekman
MailChannels: Assured Messaging(TM)
The "Practical mod_perl" book

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message