qt: fix multiple compiler warnings

This commit is contained in:
ts-korhonen
2022-03-07 21:47:48 +02:00
parent fbd29271bc
commit 87546d2ce6
6 changed files with 12 additions and 8 deletions

View File

@@ -339,6 +339,11 @@ bool NewFloppyDialog::create86f(const QString& filename, const disk_size_t& disk
return true;
}
/* Ignore false positive warning caused by a bug on gcc */
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wstringop-overflow"
#endif
bool NewFloppyDialog::createSectorImage(const QString &filename, const disk_size_t& disk_size, FileType type)
{
uint32_t total_size = 0;