-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
unused-parameter on OSX when Diagnostics is off #2658
Copy link
Copy link
Closed
Labels
kind: bugrelease item: 🔨 further changesolution: duplicatethe issue is a duplicate; refer to the linked issue insteadthe issue is a duplicate; refer to the linked issue insteadsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Milestone
Metadata
Metadata
Assignees
Labels
kind: bugrelease item: 🔨 further changesolution: duplicatethe issue is a duplicate; refer to the linked issue insteadthe issue is a duplicate; refer to the linked issue insteadsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
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?
developbranchIf you experience a compilation error: can you compile and run the unit tests?