diff options
author | glx22 <glx@openttd.org> | 2021-05-14 01:07:18 +0200 |
---|---|---|
committer | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-06-10 23:17:29 +0200 |
commit | 00e3fddd0cdff727b7a1c263e86a7238eb3f4780 (patch) | |
tree | ed37ea84b8d68abf1eb8894491906b8d0a89e936 /src/3rdparty | |
parent | b7250a42e1e069b77bf52e76da20e7efea441b05 (diff) | |
download | openttd-00e3fddd0cdff727b7a1c263e86a7238eb3f4780.tar.xz |
Fix: [MinGW] Unused squirrel code triggering a warning
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/squirrel/squirrel/sqfuncstate.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/3rdparty/squirrel/squirrel/sqfuncstate.cpp b/src/3rdparty/squirrel/squirrel/sqfuncstate.cpp index c8548bac3..2baca100e 100644 --- a/src/3rdparty/squirrel/squirrel/sqfuncstate.cpp +++ b/src/3rdparty/squirrel/squirrel/sqfuncstate.cpp @@ -79,7 +79,7 @@ SQInstructionDesc g_InstrDesc[]={ {"_OP_NEWSLOTA"}, {"_OP_SCOPE_END"} }; -#endif + void DumpLiteral(SQObjectPtr &o) { switch(type(o)){ @@ -90,6 +90,7 @@ void DumpLiteral(SQObjectPtr &o) default: printf("(%s %p)",GetTypeName(o),(void*)_rawval(o));break; break; //shut up compiler } } +#endif SQFuncState::SQFuncState(SQSharedState *ss,SQFuncState *parent,CompilerErrorFunc efunc,void *ed) { |