mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Sorted and removed duplicates from the compiler warning list
The duplicates were '-Wreturn-std-move' and '-Wunreachable-code'.
This commit is contained in:
parent
745cc82cd3
commit
4c1cf4aa67
@ -43,35 +43,33 @@ function(add_warnings_to_targets targets)
|
|||||||
|
|
||||||
if (NOT MSVC)
|
if (NOT MSVC)
|
||||||
set(CHECKED_WARNING_FLAGS
|
set(CHECKED_WARNING_FLAGS
|
||||||
"-Wall"
|
|
||||||
"-Wextra"
|
|
||||||
"-Wpedantic"
|
|
||||||
"-Wweak-vtables"
|
|
||||||
"-Wunreachable-code"
|
|
||||||
"-Wmissing-declarations"
|
|
||||||
"-Wexit-time-destructors"
|
|
||||||
"-Wglobal-constructors"
|
|
||||||
"-Wmissing-noreturn"
|
|
||||||
"-Wparentheses"
|
|
||||||
"-Wextra-semi"
|
|
||||||
"-Wunreachable-code"
|
|
||||||
"-Wstrict-aliasing"
|
|
||||||
"-Wreturn-std-move"
|
|
||||||
"-Wmissing-braces"
|
|
||||||
"-Wdeprecated"
|
|
||||||
"-Wvla"
|
|
||||||
"-Wundef"
|
|
||||||
"-Wmisleading-indentation"
|
|
||||||
"-Wcatch-value"
|
|
||||||
"-Wabsolute-value"
|
"-Wabsolute-value"
|
||||||
"-Wreturn-std-move"
|
"-Wall"
|
||||||
"-Wunused-parameter"
|
|
||||||
"-Wunused-function"
|
|
||||||
"-Wcall-to-pure-virtual-from-ctor-dtor"
|
"-Wcall-to-pure-virtual-from-ctor-dtor"
|
||||||
|
"-Wcatch-value"
|
||||||
|
"-Wdeprecated"
|
||||||
"-Wdeprecated-register"
|
"-Wdeprecated-register"
|
||||||
"-Wsuggest-override"
|
"-Wexit-time-destructors"
|
||||||
"-Wshadow"
|
"-Wextra"
|
||||||
|
"-Wextra-semi"
|
||||||
|
"-Wglobal-constructors"
|
||||||
|
"-Wmisleading-indentation"
|
||||||
|
"-Wmissing-braces"
|
||||||
|
"-Wmissing-declarations"
|
||||||
|
"-Wmissing-noreturn"
|
||||||
"-Wold-style-cast"
|
"-Wold-style-cast"
|
||||||
|
"-Wparentheses"
|
||||||
|
"-Wpedantic"
|
||||||
|
"-Wreturn-std-move"
|
||||||
|
"-Wshadow"
|
||||||
|
"-Wstrict-aliasing"
|
||||||
|
"-Wsuggest-override"
|
||||||
|
"-Wundef"
|
||||||
|
"-Wunreachable-code"
|
||||||
|
"-Wunused-function"
|
||||||
|
"-Wunused-parameter"
|
||||||
|
"-Wvla"
|
||||||
|
"-Wweak-vtables"
|
||||||
)
|
)
|
||||||
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