Warning flags

Peter Naulls peter at chocky.org
Thu Jan 31 13:00:35 PST 2002


Out of interest, here are the extra flags I've been using below.

I don't suggest you apply this, unless you remove the -Werror flag, or
your build will fail.  Probably some more will be added before I'm done,
so don't add it to CVS yet, Nick.

Peter



Index: Makefile
===================================================================
RCS file: /usr/local/cvsroot/gccsdk/unixlib/source/Makefile,v
retrieving revision 1.4.2.9
diff -u -r1.4.2.9 Makefile
--- Makefile    2001/12/19 16:52:15     1.4.2.9
+++ Makefile    2002/01/31 20:56:43
@@ -6,7 +6,13 @@
 #
 
 # Defs for GCC
-CROSS_CFLAGS += -D__UNIXLIB_INTERNALS -pedantic -Wall -Wno-long-long
+
+WARNINGS= -pedantic -Wall -Wno-long-long -Wcast-align -Wwrite-strings \
+          -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
+          -Wnested-externs -Werror
+
+CROSS_CFLAGS += -D__UNIXLIB_INTERNALS $(WARNINGS) 
 INCLUDES = -isystem clib
 
 libunixobj=$(objdir)/unixlib/$(TRG)



-- 
------------------------------------------------------------------------
 Peter Naulls - peter at chocky.org
 RISC OS Projects Initiative  -  http://www.chocky.org/initiative/
 Java for RISC OS and ARM     -  http://www.chocky.org/java/
 Debian Linux on RiscPCs      -  http://www.chocky.org/debian/
------------------------------------------------------------------------



More information about the gcc mailing list