diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2afa0473..00934d8d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -460,7 +460,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") PRIVATE -fno-omit-frame-pointer -fno-common -# -pedantic-errors + -pedantic-errors -Wall -Wextra -Werror @@ -477,7 +477,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") PRIVATE -fno-omit-frame-pointer -fno-common -# -pedantic-errors + -pedantic-errors -Wall -Wextra -Werror diff --git a/test/syntax_check/CMakeLists.txt b/test/syntax_check/CMakeLists.txt index e6316fc7..17e36bff 100644 --- a/test/syntax_check/CMakeLists.txt +++ b/test/syntax_check/CMakeLists.txt @@ -40,6 +40,7 @@ target_compile_options(tests PRIVATE -fsyntax-only -pedantic-errors + -Werror -Wextra-semi ) endif () @@ -48,6 +49,7 @@ target_compile_options(tests PRIVATE -fsyntax-only -pedantic-errors + -Werror -Wextra-semi -Wextra-semi-stmt -Wc++11-extra-semi