File: Add-a-version-marker-to-each-game-cgame-ui-module.patch

package info (click to toggle)
openarena 0.8.8%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,112 kB
  • sloc: ansic: 102,266; makefile: 1,861; asm: 396; xml: 339; sh: 134
file content (26 lines) | stat: -rw-r--r-- 907 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Simon McVittie <smcv@debian.org>
Date: Tue, 18 Feb 2020 09:48:40 +0000
Subject: Add a version marker to each game/cgame/ui module

This ensures that they aren't identical even if built from the same
code, so that their build-IDs differ, so that their detached debug
symbols don't collide.

Forwarded: not-needed
---
 code/qcommon/q_shared.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/code/qcommon/q_shared.c b/code/qcommon/q_shared.c
index 2832ea3..16a7359 100644
--- a/code/qcommon/q_shared.c
+++ b/code/qcommon/q_shared.c
@@ -23,6 +23,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 // q_shared.c -- stateless support routines that are included in each code dll
 #include "q_shared.h"
 
+static const char version_marker[] __attribute__((used)) = Q3_VERSION;
+
 float Com_Clamp( float min, float max, float value ) {
 	if ( value < min ) {
 		return min;