aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl
diff options
context:
space:
mode:
authorWaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com>2021-01-25 14:12:13 +0000
committerWaluigiWare64 <68647953+WaluigiWare64@users.noreply.github.com>2021-01-25 14:12:13 +0000
commit43348210f95d5d66ba0bcd5022db4af2c4ec4b7e (patch)
treecc76a5379d829a892763afee8fe60a1de53984db /src/frontend/qt_sdl
parentb9a56bc4e47bbb315f88ba5eaa57ce2b3efece73 (diff)
Fix some compiler warnings
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r--src/frontend/qt_sdl/ArchiveUtil.cpp2
-rw-r--r--src/frontend/qt_sdl/CheatsDialog.cpp4
-rw-r--r--src/frontend/qt_sdl/LAN_Socket.cpp4
3 files changed, 5 insertions, 5 deletions
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<QString> 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<QString> {"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);