Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 59d2de5

Browse filesBrowse files
committed
More warning suppression in test script
1 parent 2ed842a commit 59d2de5
Copy full SHA for 59d2de5

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎tests/CMakeLists.txt‎

Copy file name to clipboardExpand all lines: tests/CMakeLists.txt
+1-1Lines 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
Collapse file

‎tests/tetests.cpp‎

Copy file name to clipboardExpand all lines: tests/tetests.cpp
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.