-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
unused parameter error/warning #2706
Copy link
Copy link
Closed
Labels
release item: 🔨 further changesolution: 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
Description
Metadata
Metadata
Assignees
Labels
release item: 🔨 further changesolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
I just picked up the json diagnostic option which is a great new addition btw, but I am currently seeing this error (can be made warning) when building in release mode (basically
cassert(foo)is being eliminated by the pre-processor leading the error below:json/single_include/nlohmann/json.hpp:18131:32: error: unused parameter 'check_parents' [-Werror=unused-parameter]
18131 | void assert_invariant(bool check_parents = true) const noexcept
| ~~~~~^~~~~~~~~~~~~~~~~~~~
Thank you again for all the vibrant support