From 2354e878496d03b390e7cb8fbcd4d473ff983333 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 5 Nov 2018 09:19:44 +0100 Subject: Fix compilation warning glitches --- src/tools.c | 2 +- src/universe.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/tools.c b/src/tools.c index 0ef779a..98938f0 100644 --- a/src/tools.c +++ b/src/tools.c @@ -1816,7 +1816,7 @@ int luaG_inter_copy( Universe* U, lua_State* L, lua_State* L2, uint_t n, LookupM uint_t top_L2 = lua_gettop( L2); uint_t i, j; char tmpBuf[16]; - char* pBuf = U->verboseErrors ? tmpBuf : "?"; + char const* pBuf = U->verboseErrors ? tmpBuf : "?"; bool_t copyok = TRUE; if( n > top_L) diff --git a/src/universe.c b/src/universe.c index e733838..00de1f3 100644 --- a/src/universe.c +++ b/src/universe.c @@ -28,6 +28,8 @@ THE SOFTWARE. =============================================================================== */ +#include + #include "universe.h" #include "compat.h" #include "macros_and_utils.h" -- cgit v1.2.3-55-g6feb