• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling 0.3.6 Compile Warnings

7804364

Member
Joined
Mar 6, 2010
Messages
457
Reaction score
10
I get these warnings

Code:
aGetTownTemplePosition(lua_State*)’:
luascript.cpp:8769:7: warning: variable ‘displayError’ set but not used [-Wunused-but-set-variable]
  bool displayError = true;
       ^
 
Its just a warning, you can ignore it.

It means that you created a variable but you never used it. You can remove that line and it will disappear.
 
these lines seems to be not important
Code:
        bool displayError = true;
        if(lua_gettop(L) >= 2)
                displayError = popNumber(L);
and this warning said
you set variable and it's unused xD
so delete them and re-compile
Note line 8769
 
Back
Top