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);
      |                      ^
This commit is contained in:
Peter0x44 2024-06-17 18:39:43 +01:00
parent 70bec7322b
commit 88c161c004

View file

@ -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);