unused-parameter on OSX when Diagnostics is off #2658
Labels
kind: bug
release item: 🔨 further change
solution: duplicate
the issue is a duplicate; refer to the linked issue instead
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
What is the issue you have?
When compiling on OSX (CLANG) the default compiler state has unused-parameter turn on. This issues warnings for json.hpp, class exception, function diagnostics(), because the leaf_element parameter is not used. A simple (void)(leaf_element) in the #ELSE clause will resolve the issue.
Please describe the steps to reproduce the issue.
Can you provide a small but working code example?
What is the expected behavior?
And what is the actual behavior instead?
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: