diff options
author | Roxie Linden <roxie@lindenlab.com> | 2023-09-13 21:20:23 -0700 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2024-02-08 18:34:01 -0800 |
commit | 24379eb3eec285bf53692892d07a36aac0bad95c (patch) | |
tree | 3a9e51d47b8e424ae8045db170eaa0244519f4d5 /indra/cmake/00-Common.cmake | |
parent | a2435aa1d07a972a8f3dc8dccfc5fdaf16c4a466 (diff) |
disable unused but set warnings on newer compilers on mac.
Diffstat (limited to 'indra/cmake/00-Common.cmake')
-rw-r--r-- | indra/cmake/00-Common.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake index 897eabb233..26a4162e42 100644 --- a/indra/cmake/00-Common.cmake +++ b/indra/cmake/00-Common.cmake @@ -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}) |