From 71d20885019564586d5f4d316af220cdae2900f5 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 10 Jan 2010 12:48:06 -0800 Subject: Makefile: replace -W -Wall with centralized $(GCCWARN) Replace -W -Wall hardcoded into a bunch of Makefiles with $(GCCWARN), a centralized variable defined in the root MCONFIG. Add -Wstrict-prototypes to the list of global warnings: we should never have non-prototyped declarations. Signed-off-by: H. Peter Anvin --- MCONFIG.embedded | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MCONFIG.embedded') diff --git a/MCONFIG.embedded b/MCONFIG.embedded index 586afc3e..37abe917 100644 --- a/MCONFIG.embedded +++ b/MCONFIG.embedded @@ -28,7 +28,7 @@ GCCOPT := $(call gcc_ok,-m32,) \ LIBGCC := $(shell $(CC) $(GCCOPT) --print-libgcc) LD += -m elf_i386 -CFLAGS = $(GCCOPT) -g -W -Wall -Wno-sign-compare $(OPTFLAGS) $(INCLUDES) +CFLAGS = $(GCCOPT) -g $(GCCWARN) -Wno-sign-compare $(OPTFLAGS) $(INCLUDES) SFLAGS = $(CFLAGS) -D__ASSEMBLY__ .SUFFIXES: .c .o .S .s .i .elf .com .bin .asm .lst .c32 .lss -- cgit v1.2.3