From 88c161c0043d282c540e0eea2b8794c7c114906b Mon Sep 17 00:00:00 2001 From: Peter0x44 Date: Mon, 17 Jun 2024 18:39:43 +0100 Subject: [PATCH] NX: Fix -Wdiscarded-qualifiers warning /__w/quakespasm/quakespasm/source/gl_hud.c: In function 'HUD_WorldText': /__w/quakespasm/quakespasm/source/gl_hud.c:691:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 691 | data = COM_Parse(cl.worldmodel->entities); | ^ /__w/quakespasm/quakespasm/source/gl_hud.c:699:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 699 | data = COM_Parse(data); | ^ /__w/quakespasm/quakespasm/source/gl_hud.c:714:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 714 | data = COM_Parse(data); | ^ --- source/gl_hud.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gl_hud.c b/source/gl_hud.c index c5e8eac..3c876e9 100644 --- a/source/gl_hud.c +++ b/source/gl_hud.c @@ -685,7 +685,7 @@ void HUD_WorldText(float alpha) { // for parser char key[128], value[4096]; - char *data; + const char *data; // first, parse worldspawn data = COM_Parse(cl.worldmodel->entities);