From 2dff387e5e69e9c643a2e0068e2ecaeee381f142 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 5 Jul 2019 11:06:03 +0300 Subject: [PATCH] Try another approach to suppress warning -Warray-bounds. --HG-- branch : develop --- src/libs/vlayout/warnings.pri | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/vlayout/warnings.pri b/src/libs/vlayout/warnings.pri index 767194c77..f2b2a2224 100644 --- a/src/libs/vlayout/warnings.pri +++ b/src/libs/vlayout/warnings.pri @@ -11,6 +11,11 @@ unix { QMAKE_CXXFLAGS += -Werror } + win32:equals(QT_MAJOR_VERSION, 5):equals(QT_MINOR_VERSION, 6) { + QMAKE_CXXFLAGS += \ + -Wno-array-bounds + } + noAddressSanitizer{ # For enable run qmake with CONFIG+=noAddressSanitizer # do nothing } else {