summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-11 22:16:08 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-11 22:16:08 +0100
commit16b27c4b7ae2ccb03355148fa7fc7116190cc5fb (patch)
treec5eb676f548fbfa770e11779bcc1380d7f16f06c /src/Bindings
parentMove Format issues (diff)
downloadcuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.gz
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.bz2
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.lz
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.xz
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.tar.zst
cuberite-16b27c4b7ae2ccb03355148fa7fc7116190cc5fb.zip
Diffstat (limited to 'src/Bindings')
-rw-r--r--src/Bindings/LuaState.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index aa6ee05b3..2351f0c24 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -1281,7 +1281,9 @@ void cLuaState::LogStack(lua_State * a_LuaState, const char * a_Header)
{
UNUSED(a_Header); // The param seems unused when compiling for release, so the compiler warns
- LOGD((a_Header != NULL) ? a_Header : "Lua C API Stack contents:");
+
+ // Format string consisting only of %s is used to appease the compiler
+ LOGD("%s",(a_Header != NULL) ? a_Header : "Lua C API Stack contents:");
for (int i = lua_gettop(a_LuaState); i > 0; i--)
{
AString Value;