From e77729ed50cbf8b793f61e07da47b5a7353a4f80 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 4 Jan 2008 21:05:13 +0100 Subject: [PATCH] add AWESOME_CFLAGS with various warning --- Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 5a95b083..d7cc60f0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,7 +32,12 @@ defconfig.h: $(srcdir)/awesomerc @$(SED) 's,\\,\\\\,g;s/$$/ \\/;s/"/\\"/g' "$(srcdir)/awesomerc" >> defconfig.h @echo "\"" >> defconfig.h -AM_CPPFLAGS = $(XFT_CFLAGS) $(X_CFLAGS) $(CAIRO_CFLAGS) $(CONFUSE_CFLAGS) $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) +AWESOME_CFLAGS = -std=gnu99 -ggdb3 -pipe \ + -Wall -Wextra \ + -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare \ + -Wunused -Winit-self -Wpointer-arith -Wredundant-decls \ + -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn +AM_CPPFLAGS = $(XFT_CFLAGS) $(X_CFLAGS) $(CAIRO_CFLAGS) $(CONFUSE_CFLAGS) $(XRANDR_CFLAGS) $(XINERAMA_CFLAGS) $(AWESOME_CFLAGS) bin_PROGRAMS += awesome awesome_SOURCES = \