From 13650f20a420de2ff0c0aeb3eae60abe66be3911 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 4 Jul 2019 15:28:44 +0300 Subject: [PATCH] Try to suppress error: array subscript is above array bounds [-Werror=array-bounds]. --HG-- branch : develop --- src/libs/vlayout/stable.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libs/vlayout/stable.h b/src/libs/vlayout/stable.h index 84f003ede..946ca74d8 100644 --- a/src/libs/vlayout/stable.h +++ b/src/libs/vlayout/stable.h @@ -37,8 +37,17 @@ #if defined __cplusplus /* Add C++ includes here */ +#include "../vmisc/diagnostic.h" + #ifdef QT_CORE_LIB + +QT_WARNING_PUSH +QT_WARNING_DISABLE_GCC("-Warray-bounds") + #include + +QT_WARNING_POP + #endif #endif/*__cplusplus*/