about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-11-04 17:56:42 -0500
committerMarco Peereboom <marco@conformal.com>2011-11-04 17:56:42 -0500
commit24a6af87e0954bed1e78a904d9af18f0c043ae96 (patch)
treea3b41089d8efdf845ad65fd849f2f0b56bcd0f91 /Makefile
parent62e153fcbc8b308415a4e73334b6a560c2d0b61c (diff)
downloadxombrero-24a6af87e0954bed1e78a904d9af18f0c043ae96.tar.gz
add -Wshadow to clang target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1891ea8..e178f9d 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ PROG=xxxterm
 MAN=xxxterm.1
 
 SRCS= cookie.c inspector.c marco.c about.c whitelist.c settings.c xxxterm.c
-CFLAGS+= -O2
+CFLAGS+= -O2 -Wall -Wno-format-extra-args -Wunused
 DEBUG= -ggdb3
 LDADD= -lutil -lgcrypt
 LIBS+= gtk+-2.0
@@ -15,7 +15,7 @@ LIBS+= gnutls
 LIBS+= gthread-2.0
 GTK_CFLAGS!= pkg-config --cflags $(LIBS)
 GTK_LDFLAGS!= pkg-config --libs $(LIBS)
-CFLAGS+= $(GTK_CFLAGS) -Wall
+CFLAGS+= $(GTK_CFLAGS)
 LDFLAGS+= $(GTK_LDFLAGS)
 BUILDVERSION != sh "${.CURDIR}/buildver.sh"
 .if !${BUILDVERSION} == ""
@@ -44,11 +44,15 @@ ${PROG} ${OBJS} beforedepend: ${.CURDIR}/javascript.h
 
 # clang targets
 .if ${.TARGETS:M*analyze*}
+CFLAGS+= -Wdeclaration-after-statement
+CFLAGS+= -Wshadow
 CC=clang
 CXX=clang++
 CPP=clang -E
 CFLAGS+=--analyze
 .elif ${.TARGETS:M*clang*}
+CFLAGS+= -Wdeclaration-after-statement
+CFLAGS+= -Wshadow
 CC=clang
 CXX=clang++
 CPP=clang -E