From 24a6af87e0954bed1e78a904d9af18f0c043ae96 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Fri, 4 Nov 2011 17:56:42 -0500 Subject: add -Wshadow to clang target --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit 1.4.1-2-gfad0