aboutsummaryrefslogtreecommitdiffstats
path: root/com32/MCONFIG
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-01-10 12:48:06 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-01-10 12:49:30 -0800
commit71d20885019564586d5f4d316af220cdae2900f5 (patch)
tree0fb3024519040f20f4e46d87315a14ef571ee6c2 /com32/MCONFIG
parenta7fb4143d599529def315c444c83a8e1aac734d2 (diff)
downloadsyslinux.git-71d20885019564586d5f4d316af220cdae2900f5.tar.gz
syslinux.git-71d20885019564586d5f4d316af220cdae2900f5.tar.xz
syslinux.git-71d20885019564586d5f4d316af220cdae2900f5.zip
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 <hpa@zytor.com>
Diffstat (limited to 'com32/MCONFIG')
-rw-r--r--com32/MCONFIG6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32/MCONFIG b/com32/MCONFIG
index f8d9d978..578e2832 100644
--- a/com32/MCONFIG
+++ b/com32/MCONFIG
@@ -32,11 +32,11 @@ GPLLIB =
GPLINCLUDE =
endif
-CFLAGS = $(GCCOPT) -W -Wall -march=i386 \
+CFLAGS = $(GCCOPT) $(GCCWARN) -march=i386 \
-fomit-frame-pointer -D__COM32__ \
-nostdinc -iwithprefix include \
-I$(com32)/libutil/include -I$(com32)/include $(GPLINCLUDE)
-SFLAGS = $(GCCOPT) -W -Wall -march=i386 \
+SFLAGS = $(GCCOPT) $(GCCWARN) -march=i386 \
-fomit-frame-pointer -D__COM32__ \
-nostdinc -iwithprefix include \
-I$(com32)/libutil/include -I$(com32)/include $(GPLINCLUDE)
@@ -45,7 +45,7 @@ COM32LD = $(com32)/lib/com32.ld
LDFLAGS = -m elf_i386 -T $(COM32LD)
LIBGCC := $(shell $(CC) $(GCCOPT) --print-libgcc)
-LNXCFLAGS = -I$(com32)/libutil/include -W -Wall -O -g -D_GNU_SOURCE
+LNXCFLAGS = -I$(com32)/libutil/include $(GCCWARN) -O -g -D_GNU_SOURCE
LNXSFLAGS = -g
LNXLDFLAGS = -g