Date: Fri, 1 May 2015 14:11:06 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r385113 - head/games/lincity/files Message-ID: <201505011411.t41EB67e066114@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marino Date: Fri May 1 14:11:05 2015 New Revision: 385113 URL: https://svnweb.freebsd.org/changeset/ports/385113 Log: games/lincity: Fix build on gcc5 GCC5 doesn't like it when static variables are used inside inline functions. Added: head/games/lincity/files/patch-mouse.c (contents, props changed) Added: head/games/lincity/files/patch-mouse.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/lincity/files/patch-mouse.c Fri May 1 14:11:05 2015 (r385113) @@ -0,0 +1,29 @@ +--- mouse.c.orig 2004-07-03 08:03:17 UTC ++++ mouse.c +@@ -1057,7 +1057,7 @@ choose_residence (void) + and set to 1 if the existing transport if the more expensive sort + (e.g. GROUP_RAIL when overwriting GROUP_ROAD). + */ +-inline int ++int + mt_erase(int x, int y) + { + if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN) +@@ -1094,7 +1094,7 @@ mt_erase(int x, int y) + return 0; + } + +-inline int ++int + mt_temp(int x, int y) + { + if (x < 0 || y < 0 || x >= WORLD_SIDE_LEN || y >= WORLD_SIDE_LEN) +@@ -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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505011411.t41EB67e066114>