disable unused but set warnings on newer compilers on mac.
parent
8ba90d0773
commit
c43df8fbd7
|
|
@ -182,7 +182,9 @@ if (LINUX OR DARWIN)
|
|||
|
||||
list(APPEND GCC_WARNINGS -Wno-reorder -Wno-non-virtual-dtor )
|
||||
|
||||
# list(APPEND GCC_WARNINGS -Wno-unused-but-set-variable -Wno-unused-variable )
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13)
|
||||
list(APPEND GCC_WARNINGS -Wno-unused-but-set-variable -Wno-unused-variable )
|
||||
endif()
|
||||
|
||||
add_compile_options(${GCC_WARNINGS})
|
||||
add_compile_options(-m${ADDRESS_SIZE})
|
||||
|
|
|
|||
Loading…
Reference in New Issue