From 3bd4a2eaaa81380fdf8c6130cf636dacefb926fe Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sun, 25 Oct 2009 16:03:45 -0700 Subject: 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). --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 894874a..f105761 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` -- cgit v1.2.3