unused parameter 'e' [-Wunused-parameter] when compiling with -fno-exceptions
andijcr opened this issue · 2 comments
andijcr commented
expected/include/tl/expected.hpp
Line 187 in fd96e45
i get an annoying warning when compiling with -fno-exceptions, in my local copy i solved it by adding after line 190 (void) e;
wbuck commented
Yeah I'm getting the same issue
I fixed the issue by adding the [[maybe_unused]]
attribute:
[[noreturn]] TL_EXPECTED_11_CONSTEXPR void throw_exception( [[maybe_unused]] E&& e )