From ab4d77b99238b1cce1b0ad33aa8ef1055c587889 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 22 Nov 2012 10:08:53 +1030 Subject: [PATCH] Makefile: add -Wundef to the default CFLAGS Signed-off-by: Rusty Russell --- Makefile-ccan | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2