disable unused but set warnings on newer compilers on mac.

meow-7.2.2
Roxie Linden 2023-09-13 21:20:23 -07:00
parent 8ba90d0773
commit c43df8fbd7
1 changed files with 3 additions and 1 deletions

View File

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