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"

-- 
           Summary: cc1plus: error: unrecognized command line option "-Wno-
                    pointer-sign"
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eric dot valette at free dot fr
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22511

Reply via email to