fix unnecessary warnings in some files (#5152)

This commit is contained in:
JohnnyCena123
2025-08-28 22:28:56 +02:00
committed by GitHub
parent 7103703313
commit 4a4997c615
4 changed files with 7 additions and 6 deletions

View File

@@ -3243,6 +3243,7 @@ unsigned int rlLoadTexture(const void *data, int width, int height, int format,
int mipWidth = width;
int mipHeight = height;
int mipOffset = 0; // Mipmap data offset, only used for tracelog
(void)mipOffset; // Used to avoid gcc warnings about unused variable
// NOTE: Added pointer math separately from function to avoid UBSAN complaining
unsigned char *dataPtr = NULL;