From 477a6e1d0385f28117f1be23320841672e922c63 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 27 Mar 2020 14:10:11 -0400 Subject: Fix compiler warnings not triggering --- tests/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0eb8e34..e4d069c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -10,6 +10,9 @@ file(GLOB files "test_*.c") foreach(file ${files}) string(REGEX REPLACE "(^.*/|\\.[^.]*$)" "" file_without_ext ${file}) add_executable(${file_without_ext} ${file}) + if(NOT(MSVC)) + target_compile_options(${file_without_ext} PRIVATE -Wno-unused-parameter) + endif() target_link_libraries(${file_without_ext} libspm ${PROJECT_LIBS}) add_test(${file_without_ext} ${file_without_ext}) set_tests_properties(${file_without_ext} -- cgit