Remove outdated warnings
This commit is contained in:
parent
efe6840d08
commit
300af17108
@ -50,9 +50,7 @@ add_warning(all)
|
|||||||
add_warning(extra)
|
add_warning(extra)
|
||||||
add_warning(pedantic)
|
add_warning(pedantic)
|
||||||
add_warning(error) # treat all warnings as errors
|
add_warning(error) # treat all warnings as errors
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
||||||
add_warning(strict-overflow=2)
|
|
||||||
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
|
||||||
add_warning(strict-overflow=1)
|
add_warning(strict-overflow=1)
|
||||||
endif()
|
endif()
|
||||||
add_warning(suggest-override)
|
add_warning(suggest-override)
|
||||||
@ -79,15 +77,10 @@ add_warning(sizeof-array-argument)
|
|||||||
add_warning(switch-bool)
|
add_warning(switch-bool)
|
||||||
add_warning(tautological-compare)
|
add_warning(tautological-compare)
|
||||||
add_warning(trampolines)
|
add_warning(trampolines)
|
||||||
no_warning(c++17-extensions)
|
|
||||||
# TODO: these warnings are not enabled by default, but we consider them as useful and good to enable in the future
|
# TODO: these warnings are not enabled by default, but we consider them as useful and good to enable in the future
|
||||||
no_warning(implicit-int-conversion)
|
|
||||||
no_warning(implicit-float-conversion)
|
|
||||||
no_warning(unused-member-function)
|
|
||||||
no_warning(old-style-cast)
|
no_warning(old-style-cast)
|
||||||
no_warning(non-virtual-dtor)
|
no_warning(non-virtual-dtor)
|
||||||
no_warning(float-conversion)
|
no_warning(float-conversion)
|
||||||
no_warning(sign-conversion)
|
no_warning(sign-conversion)
|
||||||
no_warning(shorten-64-to-32)
|
|
||||||
no_warning(padded)
|
no_warning(padded)
|
||||||
no_warning(missing-noreturn)
|
no_warning(missing-noreturn)
|
||||||
Loading…
Reference in New Issue
Block a user