User account creation filtered due to spam.
Handling of -Wno-pointer-sign when used with g++ is not consistent with other C
specific warning option (at least -Wstrict-prototypes -Wdeclaration-after-statement)
May I suggest to also emit a warning instead of an error as many people use
CXXFLAGS= $(CFLAGS) + $(c++ specific options)
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid
for C/ObjC but not for C++
cc1plus: error: unrecognized command line option "-Wno-pointer-sign"
Confirmed. Only a 3.4 regression.
4.0.0 and 4.0.1 (and the mainline) produces:
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
3.0.4 produced no warning or error.
2.95.3 did not have "-Wpointer-sign" so we errored out when using "-Wno-pointer-sign".
Yes you are right g++ is :
Reading specs from /usr/lib/gcc/i486-linux-gnu/3.4.5/specs
Configured with: ../src/configure -v
--enable-shared --with-system-zlib --enable-nls --without-included-gettext
--program-suffix=-3.4 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk --disable-werror i486-linux-gnu
Thread model: posix
gcc version 3.4.5 20050706 (prerelease) (Debian 3.4.4-5)
Thanks for you quick response
3.4 does not contain such option at all. I wonder in what way 3.0.4 was
special in this regard ;)