From 7e1c096fa1e8d142478eaebf78ec751f235101d8 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 2 Jul 2019 23:32:52 +0300 Subject: [PATCH] Try to suppress error: array subscript is above array bounds [-Werror=array-bounds]. --HG-- branch : develop --- src/libs/vlayout/vtextmanager.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/vlayout/vtextmanager.h b/src/libs/vlayout/vtextmanager.h index c81d984da..a4356bc68 100644 --- a/src/libs/vlayout/vtextmanager.h +++ b/src/libs/vlayout/vtextmanager.h @@ -44,6 +44,9 @@ class VAbstractPattern; #define MIN_FONT_SIZE 5 #define MAX_FONT_SIZE 128 +QT_WARNING_PUSH +QT_WARNING_DISABLE_GCC("-Warray-bounds") + /** * @brief The TextLine struct holds the information about one text line */ @@ -62,6 +65,8 @@ private: static const quint16 classVersion; }; +QT_WARNING_POP + /** * @brief The VTextManager class this class is used to determine whether a collection of * text lines can fit into specified bounding box and with what font size