From ae0ba8142319fbd84f0813eda2f9dd2841c6f4b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Tue, 12 May 2020 13:57:16 +0200 Subject: [PATCH] Use more warnings for develoment builds --- CMake/MiscFunctions.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMake/MiscFunctions.cmake b/CMake/MiscFunctions.cmake index 0f6a9c2a..f6631951 100644 --- a/CMake/MiscFunctions.cmake +++ b/CMake/MiscFunctions.cmake @@ -50,6 +50,17 @@ function(add_warnings_to_targets targets) "-Wstrict-aliasing" "-Wreturn-std-move" "-Wmissing-braces" + "-Wdeprecated" + "-Wvla" + "-Wundef" + "-Wmisleading-indentation" + "-Wcatch-value" + "-Wabsolute-value" + "-Wreturn-std-move" + "-Wunused-parameter" + "-Wunused-function" + "-Wcall-to-pure-virtual-from-ctor-dtor" + "-Wdeprecated-register" ) foreach(warning ${CHECKED_WARNING_FLAGS}) add_cxx_flag_if_supported_to_targets(${warning} "${targets}")