We don't need to pass the renderer into SDLTest_CleanupTextDrawing()
diff --git a/include/SDL_test_font.h b/include/SDL_test_font.h
index 434e808..58c9f9d 100644
--- a/include/SDL_test_font.h
+++ b/include/SDL_test_font.h
@@ -68,7 +68,7 @@ int SDLTest_DrawString(SDL_Renderer *renderer, int x, int y, const char *s);
/**
* \brief Cleanup textures used by font drawing functions.
*/
-void SDLTest_CleanupTextDrawing(SDL_Renderer *renderer);
+void SDLTest_CleanupTextDrawing(void);
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
diff --git a/src/test/SDL_test_font.c b/src/test/SDL_test_font.c
index 0be27f6..04051a5 100644
--- a/src/test/SDL_test_font.c
+++ b/src/test/SDL_test_font.c
@@ -3236,9 +3236,9 @@ int SDLTest_DrawString(SDL_Renderer * renderer, int x, int y, const char *s)
return (result);
}
-void SDLTest_CleanupTextDrawing(SDL_Renderer *renderer)
+void SDLTest_CleanupTextDrawing(void)
{
- int i;
+ unsigned int i;
for (i = 0; i < SDL_arraysize(SDLTest_CharTextureCache); ++i) {
if (SDLTest_CharTextureCache[i]) {
SDL_DestroyTexture(SDLTest_CharTextureCache[i]);