aboutsummaryrefslogtreecommitdiff
path: root/games/r1q2
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-08-31 04:00:21 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2020-08-31 04:00:21 +0000
commit74c61c2ea2b562394f113a4e492b9e9139aea2e5 (patch)
tree27c7cc4cb0da208c893270367b9e0d4a1c571e85 /games/r1q2
parenta18fde5513eda071b83e8d91c11c60c788443db2 (diff)
downloadports-74c61c2ea2b562394f113a4e492b9e9139aea2e5.tar.gz
ports-74c61c2ea2b562394f113a4e492b9e9139aea2e5.zip
Ensure that there is only one variable definition per each object, as
the C (and C++) standards mandated for years and compilers started to enforce as of recently (Clang 11, GCC 10). Reported by: pkg-fallout
Notes
Notes: svn path=/head/; revision=547148
Diffstat (limited to 'games/r1q2')
-rw-r--r--games/r1q2/files/patch-client_client.h11
-rw-r--r--games/r1q2/files/patch-client_le__util.c10
2 files changed, 21 insertions, 0 deletions
diff --git a/games/r1q2/files/patch-client_client.h b/games/r1q2/files/patch-client_client.h
new file mode 100644
index 000000000000..44e09f38ef25
--- /dev/null
+++ b/games/r1q2/files/patch-client_client.h
@@ -0,0 +1,11 @@
+--- client/client.h.orig 2010-05-09 09:20:28 UTC
++++ client/client.h
+@@ -136,8 +136,6 @@ struct localent_s
+ //yummmm splash gibs death blood
+ #define MAX_LOCAL_ENTS 1024
+
+-localent_t cl_localents[MAX_LOCAL_ENTS];
+-
+ void Le_Reset (void);
+
+ #ifdef USE_CURL
diff --git a/games/r1q2/files/patch-client_le__util.c b/games/r1q2/files/patch-client_le__util.c
new file mode 100644
index 000000000000..8f965dfce279
--- /dev/null
+++ b/games/r1q2/files/patch-client_le__util.c
@@ -0,0 +1,10 @@
+--- client/le_util.c.orig 2005-01-12 05:19:36 UTC
++++ client/le_util.c
+@@ -4,6 +4,7 @@
+
+ int localent_count = 0;
+
++localent_t cl_localents[MAX_LOCAL_ENTS];
+ cvar_t *cl_lents;
+
+ void LE_RunEntity (localent_t *ent);