Describe the bug
clang 22 with flag -fno-exceptions
catch2/catch_translate_exception.hpp:32:73: error: unused parameter 'it' [-Werror,-Wunused-parameter]
32 | std::string translate( ExceptionTranslators::const_iterator it, ExceptionTranslators::const_iterator itEnd ) const override {
Expected behavior
it and itEnd should be marked with [[maybe-unused]] and do not signal -Wunused-parameter
Reproduction steps
Compile tests with -fno-exceptions
I do it on stdexec repo https://github.com/NVIDIA/stdexec
Platform information:
OS: Linux
compiler: clang 22.1.5
Describe the bug
clang 22 with flag -fno-exceptions
Expected behavior
itanditEndshould be marked with[[maybe-unused]]and do not signal-Wunused-parameterReproduction steps
Compile tests with
-fno-exceptionsI do it on
stdexecrepo https://github.com/NVIDIA/stdexecPlatform information:
OS: Linux
compiler: clang 22.1.5