diff options
author | 2021-03-01 15:56:00 +0000 | |
---|---|---|
committer | 2021-03-01 15:56:00 +0000 | |
commit | 4b15555f05032b2b476611974f4a51507844874f (patch) | |
tree | 240225b1d9c937d1f584f84c72848d051c4898d9 /gnu/usr.bin/perl/cpan/Module-Load-Conditional/lib/Module | |
parent | Let send_rdns_withdraw and send_deconfigure_interface clean up after (diff) | |
download | wireguard-openbsd-4b15555f05032b2b476611974f4a51507844874f.tar.xz wireguard-openbsd-4b15555f05032b2b476611974f4a51507844874f.zip |
We really must handle all possible enumeration values in
state_transition() and iface_timeout(). Let the compiler help us by
emitting a warning when we missed one (-Wswitch).
Reminded by jsg who pointed out that gcc is quite confused and thinks
there is an out of bounds access in if_state_name[] in the default
case. There is not, if_state_name[] and enum if_state have to be kept
in sync.
(Note that -Wswitch is not a silver bullet, it just happens to work
here.)
Diffstat (limited to 'gnu/usr.bin/perl/cpan/Module-Load-Conditional/lib/Module')
0 files changed, 0 insertions, 0 deletions