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/15450] New: Ability to turn selected warnings into errors.


Usually turning -Werror is too much, someone could want to just turn some
warnings into errors. The example that is triggering this request is:

a.c:3: warning: data definition has no type or storage class

with this code:

-------------------------
<at top level!>
some_variable = NULL;
-------------------------

The arch is 64 bits, and sizeof(int) != sizeof(void*), ie. this crashed the program.

I'd like to be able to turn this warning to an error. This would have saved me a
lot of time.

Thanks!

-- 
           Summary: Ability to turn selected warnings into errors.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: niqueco at hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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