From: Rusty Russell Date: Wed, 21 Nov 2012 23:38:53 +0000 (+1030) Subject: Makefile: add -Wundef to the default CFLAGS X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=ab4d77b99238b1cce1b0ad33aa8ef1055c587889 Makefile: add -Wundef to the default CFLAGS Signed-off-by: Rusty Russell --- diff --git a/Makefile-ccan b/Makefile-ccan index bab41388..fc0488d4 100644 --- a/Makefile-ccan +++ b/Makefile-ccan @@ -2,8 +2,8 @@ # For simple projects you could just do: # SRCFILES += $(wildcard ccan/*/*.c) -#CCAN_CFLAGS=-g -O3 -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -CCAN_CFLAGS=-g3 -ggdb -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wwrite-strings -DCCAN_STR_DEBUG=1 +#CCAN_CFLAGS=-g -O3 -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wwrite-strings -Wundef -DCCAN_STR_DEBUG=1 +CCAN_CFLAGS=-g3 -ggdb -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wwrite-strings -Wundef -DCCAN_STR_DEBUG=1 CFLAGS = $(CCAN_CFLAGS) -I. $(DEPGEN)