diff options
| author | Benoit Germain <bnt.germain@gmail.com> | 2018-11-05 09:19:44 +0100 |
|---|---|---|
| committer | Benoit Germain <bnt.germain@gmail.com> | 2018-11-05 09:19:44 +0100 |
| commit | 2354e878496d03b390e7cb8fbcd4d473ff983333 (patch) | |
| tree | cbf2c952e0823d82911c4e93f04340c135923c42 | |
| parent | 0e83dda2bff94870e1264766ca276b9ccc2f2cd9 (diff) | |
| download | lanes-2354e878496d03b390e7cb8fbcd4d473ff983333.tar.gz lanes-2354e878496d03b390e7cb8fbcd4d473ff983333.tar.bz2 lanes-2354e878496d03b390e7cb8fbcd4d473ff983333.zip | |
Fix compilation warning glitches
| -rw-r--r-- | src/tools.c | 2 | ||||
| -rw-r--r-- | src/universe.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 | |||
| 1816 | uint_t top_L2 = lua_gettop( L2); | 1816 | uint_t top_L2 = lua_gettop( L2); |
| 1817 | uint_t i, j; | 1817 | uint_t i, j; |
| 1818 | char tmpBuf[16]; | 1818 | char tmpBuf[16]; |
| 1819 | char* pBuf = U->verboseErrors ? tmpBuf : "?"; | 1819 | char const* pBuf = U->verboseErrors ? tmpBuf : "?"; |
| 1820 | bool_t copyok = TRUE; | 1820 | bool_t copyok = TRUE; |
| 1821 | 1821 | ||
| 1822 | if( n > top_L) | 1822 | 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. | |||
| 28 | =============================================================================== | 28 | =============================================================================== |
| 29 | */ | 29 | */ |
| 30 | 30 | ||
| 31 | #include <string.h> | ||
| 32 | |||
| 31 | #include "universe.h" | 33 | #include "universe.h" |
| 32 | #include "compat.h" | 34 | #include "compat.h" |
| 33 | #include "macros_and_utils.h" | 35 | #include "macros_and_utils.h" |
