mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-09 03:16:26 +00:00
fix a few 'unused but set variable' and 'unused function' warnings
This commit is contained in:

committed by
Sam Lantinga

parent
f4d1f5ed54
commit
3d35c08585
@@ -1152,8 +1152,6 @@ SDL_SIMDRealloc(void *mem, const size_t len)
|
||||
}
|
||||
|
||||
if (mem) {
|
||||
void **realptr = (void **) mem;
|
||||
realptr--;
|
||||
mem = *(((void **) mem) - 1);
|
||||
|
||||
/* Check the delta between the real pointer and user pointer */
|
||||
@@ -1193,8 +1191,6 @@ void
|
||||
SDL_SIMDFree(void *ptr)
|
||||
{
|
||||
if (ptr) {
|
||||
void **realptr = (void **) ptr;
|
||||
realptr--;
|
||||
SDL_free(*(((void **) ptr) - 1));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user