Skip to content

Commit

Permalink
CMake: do not compile test suite with -Winline
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Morwenn committed Jan 17, 2024
1 parent c7ea665 commit 36606d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<$<CXX_COMPILER_ID:GNU>:-Wlogical-op -Wuseless-cast>
)
Expand Down

0 comments on commit 36606d6

Please sign in to comment.