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