From 06bc9f8bafe3097aede6d82b7a0cb88c1e965ba1 Mon Sep 17 00:00:00 2001
From: Roman Telezhynskyi <dismine@gmail.com>
Date: Fri, 21 Feb 2020 10:47:13 +0200
Subject: [PATCH] Suppress Clang warning.

---
 src/libs/vlayout/vbank.cpp    | 1 +
 src/libs/vlayout/warnings.pri | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/libs/vlayout/vbank.cpp b/src/libs/vlayout/vbank.cpp
index 26d8ddd3c..1df82536c 100644
--- a/src/libs/vlayout/vbank.cpp
+++ b/src/libs/vlayout/vbank.cpp
@@ -29,6 +29,7 @@
 #include "vbank.h"
 
 #include <climits>
+#include <QLoggingCategory>
 
 #include "../vmisc/diagnostic.h"
 #include "../vmisc/vabstractapplication.h"
diff --git a/src/libs/vlayout/warnings.pri b/src/libs/vlayout/warnings.pri
index f2b2a2224..2f715e3cc 100644
--- a/src/libs/vlayout/warnings.pri
+++ b/src/libs/vlayout/warnings.pri
@@ -45,7 +45,8 @@ unix {
             # Key -isystem disable checking errors in system headers.
             -isystem "$${OUT_PWD}/$${MOC_DIR}" \
             -isystem "$${OUT_PWD}/$${RCC_DIR}" \
-            $$CLANG_DEBUG_CXXFLAGS # See common.pri for more details.
+            $$CLANG_DEBUG_CXXFLAGS \# See common.pri for more details.
+            -Wno-gnu-zero-variadic-macro-arguments\ # See macros qCCritical
 
         checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings
             QMAKE_CXXFLAGS += -Werror