File fix-gcc15.patch of Package penguin-command

Description: Fix FTBFS with GCC 15
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1097569

--- penguin-command-1.6.11.orig/src/gfx.c
+++ penguin-command-1.6.11/src/gfx.c
@@ -260,11 +260,11 @@ int DoLinePart (SDL_Surface *Surface, Si
 
 void LinePart(Sint32 X1, Sint32 Y1, Sint32 X2, Sint32 Y2, Sint32 lower, Sint32 upper, Uint32 Color)
 {
-   lock(Screen);
+   lock();
 
    /* Draw the line */
    DoLinePart(Screen, X1, Y1, X2, Y2, lower, upper, Color, &PutPixel);
-   unlock(Screen);
+   unlock();
 }
 
 void Update()
--- a/src/joystick.c
+++ b/src/joystick.c
@@ -3,6 +3,8 @@
 
 static SDL_Joystick *joy=NULL;
 
+void ComplainAndExit(void);
+
 void JoystickInit()
 {
     puts("** Init joystick **");
openSUSE Build Service is sponsored by