aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-25 16:07:46 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-25 16:07:46 -0700
commit445234ac1f785afac9e81b8271bc582e8c941e67 (patch)
tree7d6494bc9da104a47fddd5718098c7def0afdc5b /Makefile
parent3bd4a2eaaa81380fdf8c6130cf636dacefb926fe (diff)
Drop unused variable.
I didn't end up adding any of the warnings options that aren't allowed for C++, (such as -Wold-style-definition, -Wnested-externs, -Werror-implicit-function-declaration, -Wstrict-prototypes, -Wmissing-prototypes, or -Wbad-function-cast). So for now we can drop the separate C and C++ variables for warnings.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f1057616..bf34b8a5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,12 @@
PROGS=notmuch
-CXXWARNINGS_FLAGS=-Wall -Wextra -Wmissing-declarations -Wwrite-strings \
--Wswitch-enum
-CWARNINGS_FLAGS=$(CXXWARNINGS_FLAGS)
+WARN_FLAGS=-Wall -Wextra -Wmissing-declarations -Wwrite-strings -Wswitch-enum
CDEPENDS_FLAGS=`pkg-config --cflags glib-2.0 talloc`
CXXDEPENDS_FLAGS=`pkg-config --cflags glib-2.0 talloc` `xapian-config --cxxflags`
-MYCFLAGS=$(CWARNINGS_FLAGS) -O0 -g $(CDEPENDS_FLAGS)
-MYCXXFLAGS=$(CXXWARNINGS_FLAGS) -O0 -g $(CXXDEPENDS_FLAGS)
+MYCFLAGS=$(WARN_FLAGS) -O0 -g $(CDEPENDS_FLAGS)
+MYCXXFLAGS=$(WARN_FLAGS) -O0 -g $(CXXDEPENDS_FLAGS)
MYLDFLAGS=`pkg-config --libs glib-2.0 talloc` `xapian-config --libs`