aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-25 16:03:45 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-25 16:03:45 -0700
commit3bd4a2eaaa81380fdf8c6130cf636dacefb926fe (patch)
tree1f3e9c2821bac506b52f00a4b0d3da83a8f787fb /Makefile
parentc7482b4dce114b1c09cbac2f4ef6d0defdb23258 (diff)
Add -Wswitch-enum and fix warnings.
Having to enumerate all the enum values at every switch is annoying, but this warning actually found a bug, (missing support for NOTMUCH_STATUS_OUT_OF_MEMORY in notmuch_status_to_string).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 894874ae..f1057616 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
PROGS=notmuch
-CXXWARNINGS_FLAGS=-Wall -Wextra -Wmissing-declarations -Wwrite-strings
+CXXWARNINGS_FLAGS=-Wall -Wextra -Wmissing-declarations -Wwrite-strings \
+-Wswitch-enum
CWARNINGS_FLAGS=$(CXXWARNINGS_FLAGS)
CDEPENDS_FLAGS=`pkg-config --cflags glib-2.0 talloc`