mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Use more warnings for develoment builds
This commit is contained in:
parent
03ef6b9f9a
commit
ae0ba81423
@ -50,6 +50,17 @@ function(add_warnings_to_targets targets)
|
|||||||
"-Wstrict-aliasing"
|
"-Wstrict-aliasing"
|
||||||
"-Wreturn-std-move"
|
"-Wreturn-std-move"
|
||||||
"-Wmissing-braces"
|
"-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})
|
foreach(warning ${CHECKED_WARNING_FLAGS})
|
||||||
add_cxx_flag_if_supported_to_targets(${warning} "${targets}")
|
add_cxx_flag_if_supported_to_targets(${warning} "${targets}")
|
||||||
|
Loading…
Reference in New Issue
Block a user