Skip to content

Commit 74ad4c5

Browse files
committed
Suppress warning about unused param
1 parent 24787e2 commit 74ad4c5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if(TE_BUILD_TEST_RUNNER)
115115
# C4554: check operator precedence for possible error; use parentheses to clarify precedence
116116
# is suppressed because of unit test, not the code itself.
117117
if(USE_ADDRESS_SANITIZE)
118-
target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC /Zc:__cplusplus /MP /W3 /WX- /wd4554
118+
target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC /Zc:__cplusplus /MP /W3 /WX /wd4554
119119
$<$<CONFIG:Debug>:/Od /fsanitize=address> $<$<CONFIG:Release>:/O2>)
120120
else()
121121
target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC /Zc:__cplusplus /MP /W3 /WX /wd4554

tinyexpr.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2483,7 +2483,8 @@ te_expr* te_parser::te_compile(const std::string_view expression, std::set<te_va
24832483
{
24842484
optimize(root);
24852485
}
2486-
catch (const std::exception& exp)
2486+
catch ([[maybe_unused]]
2487+
const std::exception& exp)
24872488
{
24882489
// parsed OK, but there was an evaluation error;
24892490
// clean up and throw the message back up to compile()

0 commit comments

Comments
 (0)