From 893e2279b3da0e624c69fba9d10c0e88712f092a Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Thu, 1 Oct 2015 12:22:14 +0200 Subject: [PATCH] Clang: Add -Wno-gnu-zero-variadic-macro-arguments It's actually tricky because the standard says that zero arguments should be not possible in variadic macros but certain compilers support it and we using it in the logging framework. Change-Id: Ib9e1832748e8c57f149dfcfefead9618fd5e51f4 Reviewed-by: Nikolai Kosjar --- src/plugins/clangcodemodel/clangutils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/clangcodemodel/clangutils.cpp b/src/plugins/clangcodemodel/clangutils.cpp index a1ee348d1af..1dbce724a3f 100644 --- a/src/plugins/clangcodemodel/clangutils.cpp +++ b/src/plugins/clangcodemodel/clangutils.cpp @@ -217,6 +217,7 @@ private: add(QStringLiteral("-Wno-newline-eof")); add(QStringLiteral("-Wno-exit-time-destructors")); add(QStringLiteral("-Wno-global-constructors")); + add(QStringLiteral("-Wno-gnu-zero-variadic-macro-arguments")); if (m_projectPart->languageVersion >= ProjectPart::CXX98) add(QStringLiteral("-Wno-missing-prototypes"));