tags 778151 + patch
thanks

Here's a fix for the GCC 5 build issue. I added "extern" to
inline function in render.c. The package builds and links with GCC 5 with this change.

Upstream may prefer to move to C99 instead, please see section
"Different semantics for inline functions" at
https://gcc.gnu.org/gcc-5/porting_to.html for more background.

--
Nicholas Luedtke
Linux for HP Helion OpenStack, Hewlett-Packard
Description: Fixes GCC5 build error
 TODO: ADD extern to put_pixel to conform to the gnu99 std.
 .
 tuxonice-userui (1.1+dfsg1.gc3bdd83-3.1) UNRELEASED; urgency=medium
 .
   * Non-maintainer upload.
   * Fixed GCC5 build error.
Author: Nicholas Luedtke<nicholas.lued...@hp.com>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- tuxonice-userui-1.1+dfsg1.gc3bdd83.orig/fbsplash/render.c
+++ tuxonice-userui-1.1+dfsg1.gc3bdd83/fbsplash/render.c
@@ -45,7 +45,7 @@ void render_icon(icon *ticon, u8 *target
 	}
 }
 
-inline void put_pixel (u8 a, u8 r, u8 g, u8 b, u8 *src, u8 *dst, u8 add)
+extern inline void put_pixel (u8 a, u8 r, u8 g, u8 b, u8 *src, u8 *dst, u8 add)
 {
 	if (fb_opt) {
 		if (a != 255) {

Reply via email to