Bug#777877: Patch for GCC 5 build issue

2015-07-07 Thread Pearson, Greg
tags 777877 + patch
thanks

Here's a fix for the GCC 5 build issue.  I added parentheses so the
logical not applies to the whole comparison and not just the left
hand side.

--
Greg Pearson
Linux for HP Helion
--- a/src/video/gamegraphics.c	2015-07-06 23:32:29.291563665 +
+++ b/src/video/gamegraphics.c	2015-07-06 23:31:47.155562193 +
@@ -376,7 +376,7 @@
 int lod = playerVisible(p, game-player + i);
 		if (lod = 0) {
 			int drawTurn = 1;
-			if (! gSettingsCache.camType == CAM_TYPE_COCKPIT ||
+			if (! (gSettingsCache.camType == CAM_TYPE_COCKPIT) ||
 	 			p != game-player[i])
 drawTurn = 0;
 			drawCycleShadow(gPlayerVisuals + i, game-player + i, lod, drawTurn);


Bug#777880: Patch for GCC 5 build issue

2015-07-07 Thread Pearson, Greg
tags 777880 + patch
thanks

Here's a fix for the GCC 5 build issue.  I fixed a syntax error
in the libgnac-debug.h header file that was causing an
undefined reference to a non-existent function.

--
Greg Pearson
Linux for HP Helion
--- a/libgnac/libgnac-debug.h	2015-07-07 16:52:48.337744119 +
+++ b/libgnac/libgnac-debug.h	2015-07-07 16:55:00.145748723 +
@@ -52,7 +52,7 @@
 
 #if defined(__STDC_VERSION__)  __STDC_VERSION__ = 199901L
 #define libgnac_critical(...) \
-libgnac_critial_real (__func__, __FILE__, __LINE__, TRUE, __VA_ARGS__)
+libgnac_critical_real (__func__, __FILE__, __LINE__, TRUE, __VA_ARGS__)
 #elif defined(__GNUC__)  __GNUC__ = 3
 #define libgnac_critical(...) \
 libgnac_critical_real (__FUNCTION__, __FILE__, __LINE__, __VA_ARGS__)


Bug#777881: Patch for GCC 5 build issue

2015-07-07 Thread Pearson, Greg
tags 777881 + patch
thanks

Here's a fix for the GCC 5 build issue.  I added extern to the callable
copy of the inline functions to ensure externally visible functions are
emitted, please see section Different semantics for inline functions
at https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Greg Pearson
Linux for HP Helion

--- a/src/cpu.c	2015-07-07 17:13:40.761787869 +
+++ b/src/cpu.c	2015-07-07 17:19:41.433800469 +
@@ -2826,7 +2826,7 @@
   }
 }
 
-__inline__ void cpu_run(void) {
+extern __inline__ void cpu_run(void) {
   static Uint32 divid_cycle;
   int v=0;
   Uint8 a;
diff -urN a/src/vram.c b/src/vram.c
--- a/src/vram.c	2015-07-07 17:15:13.713791116 +
+++ b/src/vram.c	2015-07-07 17:19:36.793800306 +
@@ -242,7 +242,7 @@
   conf.fs^=1;
 }
 
-__inline__ Uint8 get_nb_spr(void)
+extern __inline__ Uint8 get_nb_spr(void)
 {
   Uint8 *sp=oam_space;
   Sint16 no_tile,x,y,att;


Bug#777882: Patch for GCC 5 build issue

2015-07-07 Thread Pearson, Greg
tags 777882 + patch
thanks

Here's a fix for the GCC 5 build issue.  I added extern to the callable
copy of the inline functions to ensure an externally visible function is
emitted, please see section Different semantics for inline functions
at https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Greg Pearson
Linux for HP Helion
--- a/xgnokii/xgnokii.c	2015-07-07 17:58:16.285881332 +
+++ b/xgnokii/xgnokii.c	2015-07-07 18:03:19.661891930 +
@@ -798,7 +798,7 @@
 }
 
 
-inline void GUI_HideAbout(void)
+extern inline void GUI_HideAbout(void)
 {
 	gtk_widget_hide(AboutDialog);
 }
diff -urN a/xgnokii/xgnokii_logos.c b/xgnokii/xgnokii_logos.c
--- a/xgnokii/xgnokii_logos.c	2015-07-07 17:58:40.145882166 +
+++ b/xgnokii/xgnokii_logos.c	2015-07-07 18:03:13.349891709 +
@@ -1303,7 +1303,7 @@
 	return 0;
 }
 
-inline void CloseLogosWindow(void)
+extern inline void CloseLogosWindow(void)
 {
 	gtk_widget_hide(GUI_LogosWindow);
 }


Bug#777888: Patch for GCC 5 build issue

2015-07-07 Thread Pearson, Greg
tags 777888 + patch
thanks

Here's a fix for the GCC 5 build issue.  I added parentheses so the
logical not applies to the whole comparison and not just the left
hand side.

--
Greg Pearson
Linux for HP Helion
--- a/libxdgutils/XDGDesktopEntry.cpp	2015-07-07 18:50:07.661990020 +
+++ b/libxdgutils/XDGDesktopEntry.cpp	2015-07-07 18:51:36.149993111 +
@@ -468,7 +468,7 @@
 
 // Now find missing required keys
 for(i = 0; registeredEntries[i].name != NULL; i++) {
-	if (!registeredEntries[i].type  type)
+	if (!(registeredEntries[i].type  type))
 	continue;
 
 	if (registeredEntries[i].required) {


Bug#777891: Unable to reproduce GCC-5 build issue

2015-07-07 Thread Pearson, Greg
fixed 777891 2.91.7-1
thanks

The new version of gtranslator 2.91.7-1 uploaded on  Tue, 26 May 2015
no longer has the build issue reported in this bug. The package builds
and links with GCC-5.  I suggest you close this bug.

--
Greg Pearson
Linux for HP Helio


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#777883: Unable to reproduce GCC-5 build issue

2015-07-07 Thread Pearson, Greg
fixed 777883 3.16.2-1
thanks

The new version of gnome-disk-utility 3.16.2-1 uploaded on Sun, 31 May 2015
no longer has the build issue reported in this bug. The package builds
and links with GCC-5.  I suggest you close this bug.

--
Greg Pearson
Linux for HP Helion



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#777862: Patch for GCC 5 build issue

2015-07-06 Thread Pearson, Greg
tags 777862 + patch
thanks

Here's a fix for the GCC 5 build issue.  I added extern to the callable
copy of the inline function to ensure an externally visible function is
emitted, please see section Different semantics for inline functions
at https://gcc.gnu.org/gcc-5/porting_to.html for more background.

-- 
Greg Pearson
Linux for HP Helion
--- a/util.c	2015-07-06 22:33:42.535440467 +
+++ b/util.c	2015-07-06 22:33:25.575439874 +
@@ -10,7 +10,7 @@
 
 #include stdlib.h
 
-inline long rand_long(long max)
+extern inline long rand_long(long max)
 /* return random long from [0;max[ */
 {
 	return (long) (((double)max)*rand()/(RAND_MAX+1.0));