tags 778051 + patch
thanks
Here's a fix for the GCC 5 build issue. Added "extern" to
inline functions in stuff.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: Fixed GCC5 build issue.
ADD "extern" to xpart and ypart functions
.
overgod (1.0-4.1) UNRELEASED; urgency=medium
.
* Non-maintainer upload.
* Fixed Gcc5 build issue. (closes 778051)
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>
Index: overgod-1.0/stuff.c
===================================================================
--- overgod-1.0.orig/stuff.c
+++ overgod-1.0/stuff.c
@@ -51,7 +51,6 @@ float decoy_table [ANGLE_FULL]; // not u
float cos_table [ANGLE_FULL];
float sin_table [ANGLE_FULL];
-inline int xpart(int angle, int length);
void init_trig(void)
{
@@ -66,13 +65,13 @@ void init_trig(void)
}
-inline int xpart(int angle, int length)
+extern inline int xpart(int angle, int length)
{
// return (lcos(angle) * length);// / ANGLE_FULL;
return (cos_table [angle & 1023] * length);// / ANGLE_FULL;
}
-inline int ypart(int angle, int length)
+extern inline int ypart(int angle, int length)
{
return (sin_table [angle & 1023] * length);// / ANGLE_FULL;
}