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 <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Marco Bubke
2015-10-01 12:22:14 +02:00
parent f31e02be3c
commit 893e2279b3

View File

@@ -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"));