Skip to content

Commit 12b3330

Browse files
committed
Suppress warning in tests script
1 parent 6aa688d commit 12b3330

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ if(TE_BUILD_TEST_RUNNER)
103103
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
104104
set_source_files_properties(
105105
tetests.cpp PROPERTIES COMPILE_FLAGS "-Wno-parentheses -Wno-unused-but-set-variable")
106+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
107+
set_source_files_properties(
108+
tinyexpr.cpp PROPERTIES COMPILE_FLAGS "-Werror=unused-function")
106109
endif()
107110
if(MSVC)
108111
target_compile_definitions(${CMAKE_PROJECT_NAME} PUBLIC _DISABLE_VECTOR_ANNOTATION _DISABLE_STRING_ANNOTATION

0 commit comments

Comments
 (0)