unannotated fall-through between switch labels
psi29a opened this issue · 3 comments
psi29a commented
Noticed this while running with -Werror,-Wimplicit-fallthrough
../../extern/fetched/cxxopts/include/cxxopts.hpp:2240:3: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
case 0:
^
../../extern/fetched/cxxopts/include/cxxopts.hpp:2240:3: note: insert 'break;' to avoid fall-through
case 0:
^
break;
jarro2783 commented
Which compiler and language version are you using?
matttyson commented
I also get this on Microsoft C++ 19.36.32532. I haven't tried it on clang yet but I expect it would complain as well.
jarro2783 commented
which C++ standard are you using?