WPrefs: Add case check to fix -Wmaybe-uninitialized warning
commit0d66173e1ff70c2bc0c96fae12f5c438dba9af44
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 16 Nov 2013 19:14:32 +0000 (16 20:14 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Mon, 30 Dec 2013 18:11:05 +0000 (30 18:11 +0000)
tree0bcd62d1543c37528cdeda4d39a46eedd19dada1
parent54f9e2e9ccaf21e13619fea61c0bda892582a8d1
WPrefs: Add case check to fix -Wmaybe-uninitialized warning

The default case should not arise because the tested variable is an enum,
but it the case someone would get a value wrong, we're safer with a little
warning and proper fallback than with unknown behaviour.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
WPrefs.app/Expert.c