Use more warnings for develoment builds

This commit is contained in:
Martin Hořeňovský 2020-05-12 13:57:16 +02:00
parent 03ef6b9f9a
commit ae0ba81423
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -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}")