Skip to content

Commit

Permalink
Merge pull request #4351 from uklotzde/warning-options
Browse files Browse the repository at this point in the history
Add more compiler warning options (GCC/Clang)
  • Loading branch information
Holzhaus committed Oct 4, 2021
2 parents 8dfe58b + 8a7710a commit 867a4b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,8 @@ if(MSVC)
target_compile_definitions(mixxx-lib PUBLIC _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING _CRT_SECURE_NO_WARNINGS)
endif()
else()
target_compile_options(mixxx-lib PUBLIC -Wall -Wextra -Woverloaded-virtual -Wfloat-conversion -Werror=return-type -Wformat=2 -Wundef)
# TODO: Add -Wtrampolines, not yet supported by clazy
target_compile_options(mixxx-lib PUBLIC -Wall -Wextra -Woverloaded-virtual -Wfloat-conversion -Werror=return-type -Wformat=2 -Wformat-security -Wvla -Wundef)
if(WARNINGS_PEDANTIC)
target_compile_options(mixxx-lib PUBLIC -pedantic)
endif()
Expand Down

0 comments on commit 867a4b9

Please sign in to comment.