From 75f1c64cbce9923dde378334d392a84d8ec7faa8 Mon Sep 17 00:00:00 2001 From: Javier Peletier Date: Tue, 12 May 2020 02:49:37 +0200 Subject: [PATCH] fix compilation error when disabling startup banner (#3103) --- app/lua53/lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lua53/lua.c b/app/lua53/lua.c index 86450e72..43602f12 100644 --- a/app/lua53/lua.c +++ b/app/lua53/lua.c @@ -115,8 +115,10 @@ static int docall (lua_State *L, int narg, int nres) { } static void print_version (lua_State *L) { + #ifndef DISABLE_STARTUP_BANNER lua_writestringerror( "\n" NODE_VERSION " build " BUILD_DATE " powered by " LUA_RELEASE " on SDK %s\n", SDK_VERSION); + #endif } @@ -239,9 +241,7 @@ static int pmain (lua_State *L) { input_setup(LUA_MAXINPUT, get_prompt(L, 1)); lua_input_string(" \n", 2); /* queue CR to issue first prompt */ -#ifndef DISABLE_STARTUP_BANNER print_version(L); -#endif /* * And last of all, kick off application initialisation. Note that if * LUA_INIT_STRING is a file reference and the file system is uninitialised