There is currently no support in gcc for turning specific warnings into errors.

I do most of my developement with gcc while my colleagues use MSVC, which will
error out on -Wcast-qual's equivalent. Using -Werror would be completely
unpractical because our codebase is fairly large and spewing a LOT of warnings
already. Yet there are several warnings ( like cast-qual ) that I would want to
error out so I don't checkin code that will not compile on other platforms.

At this point the only option is to post process gcc's output, which is
obviously suboptimal.


-- 
           Summary: no support for turning specific warnings into errors
           Product: gcc
           Version: 4.0.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ttimo at idsoftware dot com


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

Reply via email to