From a61d1b6a11537bc101b13024363dac6ee718e6ec Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 27 Jan 2016 07:30:28 +0000 Subject: [PATCH] Lunatic: Fix discarded-qualifiers warnings. git-svn-id: https://svn.eduke32.com/eduke32@5591 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 2 +- polymer/eduke32/source/astub.c | 2 +- polymer/eduke32/source/game.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index a532d2583..699e2c8f6 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -9166,7 +9166,7 @@ int32_t initengine(void) return E_FatalError("Failed creating engine Lua state!"); { - char *luastr = "_LUNATIC_AUX=true; decl=require('ffi').cdef; require'defs_common'"; + static char const * const luastr = "_LUNATIC_AUX=true; decl=require('ffi').cdef; require'defs_common'"; if (L_RunString(&g_engState, luastr, -1, "eng")) return E_FatalError("Failed setting up engine Lua state"); diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index b2ff0c50e..11b463a0f 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -7999,7 +7999,7 @@ extern char forcegl; #endif #ifdef LUNATIC -const char **g_argv; +char const * const * g_argv; #endif static void G_CheckCommandLine(int32_t argc, char const * const * argv) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index d7538cf30..b470e59f6 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -9852,7 +9852,7 @@ int32_t loaddefinitions_game(const char *fn, int32_t preload) } #ifdef LUNATIC -const char **g_argv; +char const * const * g_argv; const char **g_elModules; #endif