File: fix_gcc14_ftbfs.patch

package info (click to toggle)
bwbasic 2.20pl2-16
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,808 kB
  • sloc: ansic: 21,005; makefile: 82
file content (35 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: Fix FTBFS for GCC-14
 GCC-14 is more strict on function types. This patch fixes FTBFS when
 building by GCC-14.
Bug-Debian: http://bugs.debian.org/1074860
Author: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
Index: bwbasic-2.20pl2/renum.c
===================================================================
--- bwbasic-2.20pl2.orig/renum.c
+++ bwbasic-2.20pl2/renum.c
@@ -6,6 +6,8 @@
 /*-------------------------------------------------------------------*/
 
 #include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
 
 int instr();
 char *midstr1();
@@ -16,7 +18,7 @@ int f2, l2, n, x;
 int sidx[1500][2];
 char rstr[255];
 
-main(argc, argv)
+int main(argc, argv)
    int argc;
    char *argv[];
 {
@@ -472,6 +474,7 @@ main(argc, argv)
    fclose(fdout);
    sprintf(tempstr, "mv editfl %s\0", f9str);
    system(tempstr);
+   return 0;
 }