This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/22511] New: cc1plus: error: unrecognized command line option "-Wno-pointer-sign"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]