Closed cg2121 closed 2 years ago
Yeah my understanding was that this is intentional.
This is a bad idea, that switch is meant to fall through (otherwise for example having
Full
access wouldn't give you access toAdvanced
and below). However, this PR does prove RytoEX's point about the switch not being particularly beautiful. Feel free to refactor it.
To avoid compiler warnings, wouldn't [[fallthrough]]
from C++17 be more appropriate?
Supported in:
https://en.cppreference.com/w/cpp/language/attributes/fallthrough
Updated it to use the [[fallthrough]] statements
Description
This fixes warnings found with GCC on Linux.
Motivation and Context
Warnings are annoying.
How Has This Been Tested?
Compiled to see if warnings went away.
Types of changes
Checklist: