Warning fixes

This commit is contained in:
Henrik Rydgård
2026-03-10 12:19:27 +01:00
parent d533d55943
commit 2b946094a9
4 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -302,7 +302,7 @@ void TextDrawerSDL::MeasureStringInternal(std::string_view str, float *w, float
std::vector<std::string_view> lines;
SplitString(str, '\n', lines);
INFO_LOG(Log::G3D, "Measuring string %.*s", STR_VIEW(str));
// INFO_LOG(Log::G3D, "Measuring string %.*s", STR_VIEW(str));
int extW = 0, extH = 0;
std::string temp;
+3 -3
View File
@@ -79,7 +79,7 @@ bool ZipFileLoader::Initialize(int fileIndex) {
data_ = (u8 *)malloc(dataFileSize_);
if (!data_) {
ERROR_LOG(Log::IO, "Failed to allocate %lld bytes for ZIP file data", dataFileSize_);
ERROR_LOG(Log::IO, "Failed to allocate %lld bytes for ZIP file data", (long long)dataFileSize_);
zip_fclose(dataFile_);
dataFile_ = nullptr;
return false;
@@ -104,11 +104,11 @@ size_t ZipFileLoader::ReadAt(s64 absolutePos, size_t bytes, void *data, Flags fl
}
zip_int64_t retval = zip_fread(dataFile_, data_ + dataReadPos_, remaining);
if (retval < 0) {
ERROR_LOG(Log::IO, "zip_fread failed with error code %lld", retval);
ERROR_LOG(Log::IO, "zip_fread failed with error code %lld", (long long)retval);
return 0;
}
if (retval != remaining) {
ERROR_LOG(Log::IO, "zip_fread: expected %d bytes, got %lld", remaining, retval);
ERROR_LOG(Log::IO, "zip_fread: expected %d bytes, got %lld", remaining, (long long)retval);
return 0;
}
dataReadPos_ += retval;
+1 -1
View File
@@ -359,7 +359,7 @@ bool ScreenshotNotifyEndOfFrame(Draw::DrawContext *draw) {
return false;
}
}
_dbg_assert_msg_(buf.IsBackBuffer(), "buf isn't backbuffer?? rotation: %d", g_display.rotation);
_dbg_assert_msg_(buf.IsBackBuffer(), "buf isn't backbuffer?? rotation: %d", (int)g_display.rotation);
const int w = buf.GetStride();
const int h = buf.GetHeight();
SaveScreenshotAsync(std::move(buf), w, h, g_pendingScreenshot.maxRes);
+3
View File
@@ -556,6 +556,9 @@ void System_LaunchUrl(LaunchUrlType urlType, std::string_view url) {
#endif
// INFO_LOG(Log::System, "LaunchUrlType::LOCAL_FILE not implemented on this platform");
break;
default:
INFO_LOG(Log::System, "Unhandled LaunchUrlType %d", (int)urlType);
break;
}
}