qt: only ignore -Wstringop-overflow on gcc 11

This commit is contained in:
ts-korhonen
2022-03-07 22:10:03 +02:00
parent 87546d2ce6
commit c6b347000e

View File

@@ -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