summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-12-14 06:16:34 +0000
committertron <tron@openttd.org>2005-12-14 06:16:34 +0000
commitae624ee69045c23e05396740fb2a3f6cd09809ff (patch)
treed6085907293b388ad5ed482dc6379eae6fc958bc /Makefile
parent9b43afecf1b103ab6d24a1fc29a123bf8eb8d674 (diff)
downloadopenttd-ae624ee69045c23e05396740fb2a3f6cd09809ff.tar.xz
(svn r3296) Warn about testing an undefined macro with #if - should most probably be #ifdef
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9cb7c4a97..7d70dee4e 100644
--- a/Makefile
+++ b/Makefile
@@ -293,7 +293,7 @@ CC_VERSION = $(shell $(CC) -dumpversion | cut -c 1,3)
# GNU make can only test for (in)equality
# this is a workaround to test for >=
ifeq ($(shell expr $(CC_VERSION) \>= 29), 1)
- CFLAGS += -O -Wall -Wno-multichar -Wsign-compare -Wstrict-prototypes
+ CFLAGS += -O -Wall -Wno-multichar -Wsign-compare -Wstrict-prototypes -Wundef
CFLAGS += -Wwrite-strings -Wpointer-arith
endif
ifeq ($(shell expr $(CC_VERSION) \>= 30), 1)