Add -Wswitch-enum and fix warnings.
authorCarl Worth <cworth@cworth.org>
Sun, 25 Oct 2009 23:03:45 +0000 (16:03 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 25 Oct 2009 23:03:45 +0000 (16:03 -0700)
commit3bd4a2eaaa81380fdf8c6130cf636dacefb926fe
tree1f3e9c2821bac506b52f00a4b0d3da83a8f787fb
parentc7482b4dce114b1c09cbac2f4ef6d0defdb23258
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
database.cc
notmuch.c