aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorOlaf Hering <olh@suse.de>2005-07-21 15:02:09 -0400
committerSam Ravnborg <sam@mars.(none)>2005-07-21 17:45:47 -0400
commit3c521e06fad4b4b7fe4811fb8363d12cf49f40a2 (patch)
tree5904f3b98801b2c86f15abea327e4a9c5dbeffee /Makefile
parentce454d4d7278b815dcee957653ce388146484f5f (diff)
[PATCH] kbuild: add -Wundef to global CFLAGS
A recent change to the aic scsi driver removed two defines to detect endianness. cpp handles undefined strings as 0. As a result, the test turned into #if 0 == 0 and the wrong code was selected. Adding -Wundef to global CFLAGS will catch such errors. Signed-off-by: Olaf Hering <olh@suse.de> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5185c917077b..423397f03921 100644
--- a/Makefile
+++ b/Makefile
@@ -203,7 +203,7 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
203 203
204HOSTCC = gcc 204HOSTCC = gcc
205HOSTCXX = g++ 205HOSTCXX = g++
206HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer 206HOSTCFLAGS = -Wall -Wundef -Wstrict-prototypes -O2 -fomit-frame-pointer
207HOSTCXXFLAGS = -O2 207HOSTCXXFLAGS = -O2
208 208
209# Decide whether to build built-in, modular, or both. 209# Decide whether to build built-in, modular, or both.
@@ -348,7 +348,7 @@ LINUXINCLUDE := -Iinclude \
348 348
349CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) 349CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE)
350 350
351CFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs \ 351CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
352 -fno-strict-aliasing -fno-common \ 352 -fno-strict-aliasing -fno-common \
353 -ffreestanding 353 -ffreestanding
354AFLAGS := -D__ASSEMBLY__ 354AFLAGS := -D__ASSEMBLY__