jarro2783/cxxopts

unannotated fall-through between switch labels

psi29a opened this issue · 3 comments

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; 

Which compiler and language version are you using?

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.

which C++ standard are you using?