From 36606d66912bc919dd3500e89ef2e645d085ef44 Mon Sep 17 00:00:00 2001 From: Morwenn Date: Wed, 17 Jan 2024 14:29:03 +0100 Subject: [PATCH] CMake: do not compile test suite with -Winline The project exclusively uses inline for ODR compliance, therefore the warnings are mostly bogus as we never actually care whether functions are inline or not. --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 83ce62f..d99b51f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -44,7 +44,7 @@ macro(configure_tests target) # Add warnings if (NOT MSVC) target_compile_options(${target} PRIVATE - -Wall -Wextra -Wcast-align -Winline -Wmissing-declarations -Wmissing-include-dirs + -Wall -Wextra -Wcast-align -Wmissing-declarations -Wmissing-include-dirs -Wnon-virtual-dtor -Wodr -Wpedantic -Wredundant-decls -Wundef -Wunreachable-code $<$:-Wlogical-op -Wuseless-cast> )