File: ftbfs-gcc-10.patch

package info (click to toggle)
tightvnc 1%3A1.3.10-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,508 kB
  • sloc: ansic: 209,589; asm: 780; perl: 539; makefile: 533; sh: 267
file content (43 lines) | stat: -rw-r--r-- 1,523 bytes parent folder | download | duplicates (4)
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
41
42
43
Description: Ensure tightvnc builds with gcc-10
 Apply the measure suggested on https://gcc.gnu.org/gcc-10/porting_to.html.
 For further documentation refer to
 https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html.
Bug-Debian: https://bugs.debian.org/957878
Forwarded: no
Author: Sven Geuer <debmaint@g-e-u-e-r.de>
Last-Update: 2020-07-24
--- a/Xvnc/programs/Xserver/cfb/cfballpriv.c
+++ b/Xvnc/programs/Xserver/cfb/cfballpriv.c
@@ -42,8 +42,8 @@
 #include "cfbmskbits.h"
 #include "mibstore.h"
 
-int cfbWindowPrivateIndex;
-int cfbGCPrivateIndex;
+int cfbWindowPrivateIndex __attribute__((common));
+int cfbGCPrivateIndex __attribute__((common));
 #ifdef CFB_NEED_SCREEN_PRIVATE
 int cfbScreenPrivateIndex;
 #endif
--- a/Xvnc/programs/Xserver/cfb/cfbbitblt.c
+++ b/Xvnc/programs/Xserver/cfb/cfbbitblt.c
@@ -666,7 +666,7 @@
 #endif
 
 /* shared among all different cfb depths through linker magic */
-RegionPtr   (*cfbPuntCopyPlane)();
+RegionPtr   (*cfbPuntCopyPlane)() __attribute__((common));
 
 RegionPtr cfbCopyPlane(pSrcDrawable, pDstDrawable,
 	    pGC, srcx, srcy, width, height, dstx, dsty, bitPlane)
--- a/Xvnc/programs/Xserver/hw/xfree86/common/compiler.h
+++ b/Xvnc/programs/Xserver/hw/xfree86/common/compiler.h
@@ -265,7 +265,7 @@
 #else /* defined(linux) && defined(__alpha__) */
 #if defined(__mips__)
 
-unsigned int IOPortBase;  /* Memory mapped I/O port area */
+unsigned int IOPortBase __attribute__((common));  /* Memory mapped I/O port area */
 
 static __inline__ void
 outb(port, val)