Fix various GCC 13 warnings

Fixes occurrences of `-Wtype-limits`, `-Wmaybe-uninitialized`,
`-Wduplicated-branches`.
This commit is contained in:
Rémi Verschelde
2023-12-08 13:33:45 +01:00
parent 45c76995dd
commit 02e4e208ef
7 changed files with 18 additions and 18 deletions

View File

@ -1214,10 +1214,10 @@ public:
struct MipMaps {
struct Size {
GLuint fbo;
GLuint color;
int width;
int height;
GLuint fbo = 0;
GLuint color = 0;
int width = 0;
int height = 0;
};
Vector<Size> sizes;

View File

@ -1349,9 +1349,9 @@ public:
struct Effects {
struct MipMaps {
struct Size {
GLuint fbo;
int width;
int height;
GLuint fbo = 0;
int width = 0;
int height = 0;
};
Vector<Size> sizes;