Sorted and removed duplicates from the compiler warning list

The duplicates were '-Wreturn-std-move' and '-Wunreachable-code'.
This commit is contained in:
Martin Hořeňovský 2022-04-28 11:06:53 +02:00
parent 745cc82cd3
commit 4c1cf4aa67
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

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