File lha-gcc15.patch of Package lha

diff -upr lha-1.14.1~git.20230329.orig/src/lha.h lha-1.14.1~git.20230329/src/lha.h
--- lha-1.14.1~git.20230329.orig/src/lha.h	2025-06-19 10:13:18.371528833 +0000
+++ lha-1.14.1~git.20230329/src/lha.h	2025-06-19 10:20:40.265231480 +0000
@@ -215,7 +215,7 @@ int fnmatch(const char *pattern, const c
 
 struct encode_option {
 #if defined(__STDC__) || defined(AIX)
-    void            (*output) ();
+    void            (*output) (unsigned short, unsigned short);
     void            (*encode_start) ();
     void            (*encode_end) ();
 #else
diff -upr lha-1.14.1~git.20230329.orig/src/lhadd.c lha-1.14.1~git.20230329/src/lhadd.c
--- lha-1.14.1~git.20230329.orig/src/lhadd.c	2025-06-19 10:13:18.371603330 +0000
+++ lha-1.14.1~git.20230329/src/lhadd.c	2025-06-19 10:16:18.876845083 +0000
@@ -9,7 +9,7 @@
 /* ------------------------------------------------------------------------ */
 #include "lha.h"
 /* ------------------------------------------------------------------------ */
-static void     remove_files();
+static void     remove_files(int, char **);
 
 static char     new_archive_name_buffer[FILENAME_LENGTH];
 static char    *new_archive_name;
diff -upr lha-1.14.1~git.20230329.orig/src/slide.c lha-1.14.1~git.20230329/src/slide.c
--- lha-1.14.1~git.20230329.orig/src/slide.c	2025-06-19 10:13:18.372157080 +0000
+++ lha-1.14.1~git.20230329/src/slide.c	2025-06-19 10:26:07.717831257 +0000
@@ -37,11 +37,11 @@ static unsigned int *prev;      /* previ
 static struct encode_option encode_define[2] = {
 #if defined(__STDC__) || defined(AIX)
     /* lh1 */
-    {(void (*) ()) output_dyn,
+    {(void (*) (unsigned short, unsigned short)) output_dyn,
      (void (*) ()) encode_start_fix,
      (void (*) ()) encode_end_dyn},
     /* lh4, 5, 6, 7 */
-    {(void (*) ()) output_st1,
+    {(void (*) (unsigned short, unsigned short)) output_st1,
      (void (*) ()) encode_start_st1,
      (void (*) ()) encode_end_st1}
 #else
openSUSE Build Service is sponsored by