From dc7b9cdb41561d264647e73f4b0a05b8c48fb176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Wed, 31 May 2017 21:34:55 +0200 Subject: Qt: Disable -Wframe-larger-than= for ui_main_window.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The generated Ui_MainWindow::setupUi() can grow larger than our configured limit, so turn off -Wframe-larger-than= for ui_main_window.h. Change-Id: I550ff30ebe566b711c63f7a9d0276e5b06244407 Reviewed-on: https://code.wireshark.org/review/21866 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann Reviewed-by: Stig Bjørlykke --- ui/qt/main_window.cpp | 7 +++++++ ui/qt/main_window_slots.cpp | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'ui') diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index b47b83e34c..d9036cb3e9 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -20,7 +20,14 @@ */ #include "main_window.h" + +/* + * The generated Ui_MainWindow::setupUi() can grow larger than our configured limit, + * so turn off -Wframe-larger-than= for ui_main_window.h. + */ +DIAG_OFF(frame-larger-than=) #include +DIAG_ON(frame-larger-than=) #include #include "epan/dissector_filters.h" diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp index 4f550b3bbd..82f9cc7543 100644 --- a/ui/qt/main_window_slots.cpp +++ b/ui/qt/main_window_slots.cpp @@ -28,7 +28,14 @@ #endif #include "main_window.h" + +/* + * The generated Ui_MainWindow::setupUi() can grow larger than our configured limit, + * so turn off -Wframe-larger-than= for ui_main_window.h. + */ +DIAG_OFF(frame-larger-than=) #include +DIAG_ON(frame-larger-than=) #ifdef _WIN32 #include -- cgit v1.2.1