Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryopito <pierre.bourgin@free.fr>2021-04-24 01:11:24 +0300
committerFelix Weilbach (Rebase PR Action) <felix.weilbach@t-online.de>2021-04-26 16:22:41 +0300
commit14d61c507157cc0c45201f934255c6dde03f64fc (patch)
tree86baa8e25d12afde9ff39a00febbde022a0bd2bf /src/CMakeLists.txt
parent384aeb513b20faa1fea4824a4c37fd93b80a1ed5 (diff)
clang's variadic macro warnings: only for clang
following settings of cmake/modules/Warnings.cmake Signed-off-by: yopito <pierre.bourgin@free.fr>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f29349582..6f3145331 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -30,10 +30,12 @@ if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORTIFY_SOURCE=2")
endif()
- # Calling Qt's qCWarning(category, ...) with no params for "..." is a GNU
- # extension (C++11 §16.3/4 forbids them). Silence clang's warnings.
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-gnu-zero-variadic-macro-arguments")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-gnu-zero-variadic-macro-arguments")
+ if (CMAKE_CXX_COMPILER MATCHES "Clang")
+ # Calling Qt's qCWarning(category, ...) with no params for "..." is a GNU
+ # extension (C++11 §16.3/4 forbids them). Silence clang's warnings.
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-gnu-zero-variadic-macro-arguments")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-gnu-zero-variadic-macro-arguments")
+ endif()
endif()
if(WIN32)