From: Jani Nikula Date: Tue, 30 Oct 2012 20:32:32 +0000 (+0200) Subject: build: drop the -Wswitch-enum warning X-Git-Tag: 0.15_rc1~198 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=c158201ee217740cb1b64858df8c7d39cf7793d0;hp=c158201ee217740cb1b64858df8c7d39cf7793d0 build: drop the -Wswitch-enum warning -Wswitch-enum is a bit awkward if a switch statement is intended to handle just some of the named codes of an enumeration especially, and leave the rest to the default label. We already have -Wall, which enables -Wswitch by default, and per GCC documentation, "The only difference between -Wswitch and this option [-Wswitch-enum] is that this option gives a warning about an omitted enumeration code even if there is a default label." Drop -Wswitch-enum to not force listing all named codes of enumerations in switch statements that have a default label. ---