summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/Module-Metadata/lib/Module/Metadata.pm
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2021-03-01 15:56:00 +0000
committerflorian <florian@openbsd.org>2021-03-01 15:56:00 +0000
commit4b15555f05032b2b476611974f4a51507844874f (patch)
tree240225b1d9c937d1f584f84c72848d051c4898d9 /gnu/usr.bin/perl/cpan/Module-Metadata/lib/Module/Metadata.pm
parentLet send_rdns_withdraw and send_deconfigure_interface clean up after (diff)
downloadwireguard-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-Metadata/lib/Module/Metadata.pm')
0 files changed, 0 insertions, 0 deletions