From 43348210f95d5d66ba0bcd5022db4af2c4ec4b7e Mon Sep 17 00:00:00 2001 From: WaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com> Date: Mon, 25 Jan 2021 14:12:13 +0000 Subject: Fix some compiler warnings --- src/frontend/qt_sdl/ArchiveUtil.cpp | 2 +- src/frontend/qt_sdl/CheatsDialog.cpp | 4 ++-- src/frontend/qt_sdl/LAN_Socket.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/frontend/qt_sdl') diff --git a/src/frontend/qt_sdl/ArchiveUtil.cpp b/src/frontend/qt_sdl/ArchiveUtil.cpp index c1f2fc1..cbb3ecc 100644 --- a/src/frontend/qt_sdl/ArchiveUtil.cpp +++ b/src/frontend/qt_sdl/ArchiveUtil.cpp @@ -82,7 +82,7 @@ QVector ExtractFileFromArchive(const char* path, const char* wantedFile if (bytesRead < 0) { - printf(archive_error_string(a)); + printf("Error whilst reading archive: %s", archive_error_string(a)); return QVector {"Err", archive_error_string(a)}; } diff --git a/src/frontend/qt_sdl/CheatsDialog.cpp b/src/frontend/qt_sdl/CheatsDialog.cpp index 05fedc5..b38c666 100644 --- a/src/frontend/qt_sdl/CheatsDialog.cpp +++ b/src/frontend/qt_sdl/CheatsDialog.cpp @@ -276,7 +276,7 @@ void CheatsDialog::onCheatEntryModified(QStandardItem* item) if (item->text().isEmpty()) { QString oldname = QString(cat.Name); - item->setText(oldname.isEmpty() ? "(blank category name??)" : oldname); + item->setText(oldname.isEmpty() ? "(blank category name?)" : oldname); } else { @@ -291,7 +291,7 @@ void CheatsDialog::onCheatEntryModified(QStandardItem* item) if (item->text().isEmpty()) { QString oldname = QString(code.Name); - item->setText(oldname.isEmpty() ? "(blank code name??)" : oldname); + item->setText(oldname.isEmpty() ? "(blank code name?)" : oldname); } else { diff --git a/src/frontend/qt_sdl/LAN_Socket.cpp b/src/frontend/qt_sdl/LAN_Socket.cpp index c147e69..6fcac6f 100644 --- a/src/frontend/qt_sdl/LAN_Socket.cpp +++ b/src/frontend/qt_sdl/LAN_Socket.cpp @@ -102,11 +102,11 @@ ssize_t SlirpCbSendPacket(const void* buf, size_t len, void* opaque) { if (len > 2048) { - printf("slirp: packet too big (%d)\n", len); + printf("slirp: packet too big (%zu)\n", len); return 0; } - printf("slirp: response packet of %d bytes, type %04X\n", len, ntohs(((u16*)buf)[6])); + printf("slirp: response packet of %zu bytes, type %04X\n", len, ntohs(((u16*)buf)[6])); RXEnqueue(buf, len); -- cgit v1.2.3