Fix use of inline, bogus with C99 inline semantics, as exposed by clang 15

This commit is contained in:
jca 2023-01-27 17:29:37 +00:00
parent e3c4e887e1
commit c4d6976d37
2 changed files with 15 additions and 1 deletions

View File

@ -3,7 +3,7 @@ COMMENT= Rich city simulation game for X
DISTNAME= lincity-1.13.1
CATEGORIES= games
HOMEPAGE= http://lincity.sourceforge.net/
REVISION= 1
REVISION= 2
# GPLv2 only
PERMIT_PACKAGE= Yes

View File

@ -0,0 +1,14 @@
Drop pointless inline that leads to undefined symbol when built with clang 15.
Index: mouse.c
--- mouse.c.orig
+++ mouse.c
@@ -1128,7 +1128,7 @@ mt_temp(int x, int y)
return 0;
}
-inline int
+int
mt_perm(int x, int y)
{
/* By now, it has already been mt_erase()'d */