File: fix-gcc-10-ftbfs.patch

package info (click to toggle)
libforms 1.2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 11,192 kB
  • sloc: ansic: 98,419; sh: 11,156; makefile: 959
file content (40 lines) | stat: -rw-r--r-- 1,333 bytes parent folder | download
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
36
37
38
39
40
Description: Fix FTBFS with GCC 10
Author: Paul Wise <pabs@debian.org>
Bug-Debian: https://bugs.debian.org/957439
Origin: upstream, extracted from two separate commits:
 https://git.savannah.nongnu.org/cgit/xforms.git/commit/?id=9806bce102d0c079c2c486b25ae6bdac3c98eecf
 https://git.savannah.nongnu.org/cgit/xforms.git/commit/?id=2c1a9f151baf50887a517280645ec23379fb96f8
--- a/lib/objects.c
+++ b/lib/objects.c
@@ -41,6 +41,9 @@ extern FL_FORM * fli_fast_free_object;
 extern FL_OBJECT * fli_handled_obj;        /* defined in  events.c */
 extern FL_OBJECT * fli_handled_parent;     /* defined in  events.c */
 
+extern FL_OBJECT * fli_handled_obj;        /* defined in  events.c */
+extern FL_OBJECT * fli_handled_parent;     /* defined in  events.c */
+
 static void redraw( FL_FORM *,
                     int );
 static void lose_focus( FL_OBJECT * );
--- a/fdesign/sp_spinner.c
+++ b/fdesign/sp_spinner.c
@@ -29,7 +29,7 @@
 #include "spec/spinner_spec.h"
 
 static FD_spinnerattrib * spn_attrib;
-FL_OBJECT *curobj;
+static FL_OBJECT *curobj;
 
 
 /***************************************
--- a/fdesign/sp_twheel.c
+++ b/fdesign/sp_twheel.c
@@ -38,7 +38,7 @@
 #include "spec/twheel_spec.h"
 
 static FD_twheelattrib * twheel_attrib;
-FL_OBJECT * curobj;
+static FL_OBJECT * curobj;
 
 
 /***************************************