switch/default -- enum, want compiler error

Gary E. Miller gem at rellim.com
Wed Apr 8 00:40:37 UTC 2026


Yo Hal!

On Tue, 07 Apr 2026 17:21:27 -0700
Hal Murray via devel <devel at ntpsec.org> wrote:

> I couldn't find anything about in in my gcc, but I did find
>        -Wswitch-enum
>            Warn whenever a "switch" statement has an index of
> enumerated type

Neat.  That found some stuff in gpsd that will take some  time  to fix.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 283 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20260407/af842482/attachment.bin>


More information about the devel mailing list