Description: Fix FTBFS: drop stale stderr argument from DebugPrintf calls
 The 27_debug.diff patch converted fprintf(stderr, ...) calls into
 DebugPrintf(1, stderr, ...), but DebugPrintf's signature is
 (int db_level, const char *fmt, ...).  Passing FILE * as the format
 string triggers -Wincompatible-pointer-types errors (fatal with GCC 14),
 and would be undefined behaviour at runtime.  Drop the stale stderr
 argument from the 7 call sites in src/graphics.c; DebugPrintf already
 writes to stderr internally.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: other
Forwarded: not-needed
Last-Update: 2026-09-02

--- freedroidrpg-1.0.orig/src/graphics.c
+++ freedroidrpg-1.0/src/graphics.c
@@ -575,16 +575,16 @@ static void show_open_gl_driver_info(voi
 	// Since we want to use openGl, it might be good to check the OpenGL vendor string
 	// provided by the graphics driver.  Let's see...
 	//
-        DebugPrintf(1, stderr, "\n-OpenGL--------------------------------------------------------------------------");
-	DebugPrintf(1, stderr, "\nVendor     : %s", glGetString(GL_VENDOR));
+        DebugPrintf(1, "\n-OpenGL--------------------------------------------------------------------------");
+	DebugPrintf(1, "\nVendor     : %s", glGetString(GL_VENDOR));
 	open_gl_check_error_status(__FUNCTION__);
-	DebugPrintf(1, stderr, "\nRenderer   : %s", glGetString(GL_RENDERER));
+	DebugPrintf(1, "\nRenderer   : %s", glGetString(GL_RENDERER));
 	open_gl_check_error_status(__FUNCTION__);
-	DebugPrintf(1, stderr, "\nVersion    : %s", glGetString(GL_VERSION));
+	DebugPrintf(1, "\nVersion    : %s", glGetString(GL_VERSION));
 	open_gl_check_error_status(__FUNCTION__);
-	DebugPrintf(1, stderr, "\nExtensions : %s", glGetString(GL_EXTENSIONS));
+	DebugPrintf(1, "\nExtensions : %s", glGetString(GL_EXTENSIONS));
 	open_gl_check_error_status(__FUNCTION__);
-	DebugPrintf(1, stderr, "\n\n");
+	DebugPrintf(1, "\n\n");
 }
 #endif
 
@@ -706,7 +706,7 @@ static void set_video_mode_for_open_gl(v
 		SDL_GL_GetAttribute(SDL_GL_BLUE_SIZE, &blue_size);
 		SDL_GL_GetAttribute(SDL_GL_ALPHA_SIZE, &alpha_size);
 		SDL_GL_GetAttribute(SDL_GL_DEPTH_SIZE, &depth_size);
-		DebugPrintf(1, stderr, "\nvideo mode set (bpp=%d RGBA=%d%d%d%d depth=%d)",
+		DebugPrintf(1, "\nvideo mode set (bpp=%d RGBA=%d%d%d%d depth=%d)",
 			    buffer_size, red_size, green_size, blue_size, alpha_size, depth_size);
 
 		SDL_PixelFormat *fmt = Screen->format;
