Fix use of inline, bogus with C99 inline semantics, as exposed by clang 15
This commit is contained in:
parent
e3c4e887e1
commit
c4d6976d37
|
@ -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
|
||||
|
|
|
@ -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 */
|
Loading…
Reference in New Issue