Silence some warnings

This commit is contained in:
Georg Hagen
2025-03-02 22:41:14 +01:00
parent d33ccd140c
commit efcee95158
5 changed files with 39 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ namespace OpenVulkano::Image
return Math::Vector2i { -1, -1 };
}
Math::Vector2i res = {};
int size = 0, jpegSubsamp = 0;
int jpegSubsamp = 0;
int status = tjDecompressHeader2(jpegDecompressor, reinterpret_cast<unsigned char*>(image.Data()), image.Size(),
&res.x, &res.y, &jpegSubsamp);
if (status != 0)