diff options
author | SerHack <hi@serhack.me> | 2021-12-19 02:11:09 -0800 |
---|---|---|
committer | SerHack <support@monerointegrations.com> | 2021-12-19 03:16:53 -0800 |
commit | 6366187cf3245b2af6257515afb7faa43d18bada (patch) | |
tree | 129e43c3db3a3b895cdc32ea23e4821014ef017a | |
parent | Merge pull request #8103 (diff) | |
download | monero-6366187cf3245b2af6257515afb7faa43d18bada.tar.xz |
Fixed warnings for Clang (used as CMAKE_CXX compiler)
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d510b853..20b356808 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -764,7 +764,7 @@ else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ARCH_FLAG}") set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized") - if(CMAKE_C_COMPILER_ID MATCHES "Clang") + if(CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") if(ARM) set(WARNINGS "${WARNINGS} -Wno-error=inline-asm") endif() |