mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 07:39:56 -06:00
Fix some compiler warnings
This commit is contained in:
@ -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)};
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user