mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-07 10:26:28 +00:00
fix unnecessary warnings in some files (#5152)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user