wip
This commit is contained in:
parent
4b4f0e4b57
commit
a3be76e24e
@ -59,25 +59,6 @@ endif()
|
|||||||
add_warning(suggest-destructor-override)
|
add_warning(suggest-destructor-override)
|
||||||
add_warning(unused)
|
add_warning(unused)
|
||||||
add_warning(unreachable-code)
|
add_warning(unreachable-code)
|
||||||
# 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(non-virtual-dtor)
|
|
||||||
no_warning(float-conversion)
|
|
||||||
no_warning(sign-conversion)
|
|
||||||
no_warning(shorten-64-to-32)
|
|
||||||
no_warning(padded)
|
|
||||||
no_warning(missing-noreturn)
|
|
||||||
no_warning(c++17-extensions)
|
|
||||||
#elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
|
||||||
# add_warning(pedantic)
|
|
||||||
# # Add compiler options only to c++ compiler
|
|
||||||
# function(add_cxx_compile_options option)
|
|
||||||
# add_compile_options("$<$<STREQUAL:$<TARGET_PROPERTY:LINKER_LANGUAGE>,CXX>:${option}>")
|
|
||||||
# endfunction()
|
|
||||||
# add_warning(strict-overflow=1)
|
|
||||||
add_warning(delete-incomplete)
|
add_warning(delete-incomplete)
|
||||||
add_warning(duplicated-cond)
|
add_warning(duplicated-cond)
|
||||||
add_warning(disabled-optimization)
|
add_warning(disabled-optimization)
|
||||||
@ -97,4 +78,15 @@ endif()
|
|||||||
add_warning(switch-bool)
|
add_warning(switch-bool)
|
||||||
add_warning(tautological-compare)
|
add_warning(tautological-compare)
|
||||||
add_warning(trampolines)
|
add_warning(trampolines)
|
||||||
#endif()
|
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
|
||||||
|
no_warning(implicit-int-conversion)
|
||||||
|
no_warning(implicit-float-conversion)
|
||||||
|
no_warning(unused-member-function)
|
||||||
|
no_warning(old-style-cast)
|
||||||
|
no_warning(non-virtual-dtor)
|
||||||
|
no_warning(float-conversion)
|
||||||
|
no_warning(sign-conversion)
|
||||||
|
no_warning(shorten-64-to-32)
|
||||||
|
no_warning(padded)
|
||||||
|
no_warning(missing-noreturn)
|
||||||
Loading…
Reference in New Issue
Block a user