fix a few 'unused but set variable' and 'unused function' warnings

This commit is contained in:
Steven Noonan
2022-10-02 17:30:03 -07:00
committed by Sam Lantinga
parent f4d1f5ed54
commit 3d35c08585
3 changed files with 3 additions and 6 deletions

View File

@@ -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));
}
}