From: Ryan Flegel Date: Sun, 23 Apr 2006 16:21:38 +0000 (+0000) Subject: - fixed unused parameter warning X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0814260b1f83bea6cd140e3df4d131f2a9a4f30d;p=supertux.git - fixed unused parameter warning - fixed missing virtual destructor warning in squirrel header SVN-Revision: 3388 --- diff --git a/src/scripting/squirrel_util.cpp b/src/scripting/squirrel_util.cpp index f9cb64835..1ece08cea 100644 --- a/src/scripting/squirrel_util.cpp +++ b/src/scripting/squirrel_util.cpp @@ -59,8 +59,8 @@ void init_squirrel(bool enable_debugger) if(global_vm == NULL) throw std::runtime_error("Couldn't initialize squirrel vm"); -#ifdef ENABLE_SQDBG if(enable_debugger) { +#ifdef ENABLE_SQDBG sq_enabledebuginfo(global_vm, SQTrue); debugger = sq_rdbg_init(global_vm, 1234, SQFalse); if(debugger == NULL) @@ -71,8 +71,8 @@ void init_squirrel(bool enable_debugger) if(SQ_FAILED(sq_rdbg_waitforconnections(debugger))) throw SquirrelError(global_vm, "Waiting for debug clients failed"); log_info << "debug client connected." << std::endl; - } #endif + } sq_pushroottable(global_vm); if(sqstd_register_bloblib(global_vm) < 0) diff --git a/src/squirrel/include/sqstdio.h b/src/squirrel/include/sqstdio.h index 1174201a9..5f64612e1 100644 --- a/src/squirrel/include/sqstdio.h +++ b/src/squirrel/include/sqstdio.h @@ -7,6 +7,7 @@ #define SQSTD_STREAM_TYPE_TAG 0x80000000 struct SQStream { + virtual ~SQStream() { }; virtual SQInteger Read(void *buffer, SQInteger size) = 0; virtual SQInteger Write(void *buffer, SQInteger size) = 0; virtual SQInteger Flush() = 0;