Skip to content

Commit 59d2de5

Browse files
committed
More warning suppression in test script
1 parent 2ed842a commit 59d2de5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ if(TE_BUILD_TEST_RUNNER)
101101
# Disable specific -Werror warnings only for tetests.cpp
102102
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
103103
set_source_files_properties(
104-
tetests.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=parentheses -Wno-error=unused-but-set-variable")
104+
tetests.cpp PROPERTIES COMPILE_FLAGS "-Wno-parentheses -Wno-unused-but-set-variable")
105105
endif()
106106
if(MSVC)
107107
target_compile_definitions(${CMAKE_PROJECT_NAME} PUBLIC _DISABLE_VECTOR_ANNOTATION _DISABLE_STRING_ANNOTATION

tests/tetests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3770,7 +3770,7 @@ TEST_CASE("Unknown symbol resolve lambda with capture", "[usr]")
37703770
std::string str("id.temperature < 51");
37713771
te_type temperature = 49.0;
37723772
te_parser parser;
3773-
parser.set_unknown_symbol_resolver([&](std::string_view symbol)
3773+
parser.set_unknown_symbol_resolver([&]([[maybe_unused]] std::string_view symbol)
37743774
{
37753775
return temperature += 1.0;
37763776
}, false);

0 commit comments

Comments
 (0)