nmsg/isc/ncap: fix compiler diagnostics when compiled with -Wswitch