This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15450] New: Ability to turn selected warnings into errors.
- From: "niqueco at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 May 2004 23:17:19 -0000
- Subject: [Bug c/15450] New: Ability to turn selected warnings into errors.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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