Skip to content

unused parameter error/warning #2706

Closed
@raduteo

Description

@raduteo

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

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions