[PATCH v2 1/7] build: drop the -Wswitch-enum warning

2012-08-04 Thread Jani Nikula
-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

[PATCH v2 1/7] build: drop the -Wswitch-enum warning

2012-08-04 Thread Jani Nikula
-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