Compiler warns of implicit fallthrough when defining preprocessor macro NDEBUG #2348
Closed
2 of 5 tasks
Labels
confirmed
kind: bug
release item: 🔨 further change
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
What is the issue you have?
GCC produces a warning that statement json.hpp:8394 may fall through when preprocessor macro NDEBUG is defined.
Please describe the steps to reproduce the issue.
g++ -Wextra -DNDEBUG <filename>
Can you provide a small but working code example?
What is the expected behavior?
Compiler does not produce a warning, because a statement may fall through
And what is the actual behavior instead?
Compiler produces a warning, because a statement may fall through
Which compiler and operating system are you using?
Which version of the library did you use?
develop
branchIf you experience a compilation error: can you compile and run the unit tests?
The text was updated successfully, but these errors were encountered: