From c6b347000ee1d3202943305bb9f799343bb09fb8 Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Mon, 7 Mar 2022 22:10:03 +0200 Subject: [PATCH] qt: only ignore -Wstringop-overflow on gcc 11 --- src/qt/qt_newfloppydialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/qt_newfloppydialog.cpp b/src/qt/qt_newfloppydialog.cpp index 58239fe16..30b0fb674 100644 --- a/src/qt/qt_newfloppydialog.cpp +++ b/src/qt/qt_newfloppydialog.cpp @@ -340,7 +340,7 @@ bool NewFloppyDialog::create86f(const QString& filename, const disk_size_t& disk } /* Ignore false positive warning caused by a bug on gcc */ -#ifdef __GNUC__ +#if __GNUC__ >= 11 #pragma GCC diagnostic ignored "-Wstringop-overflow" #endif