From: Maxim Mamontov Date: Wed, 14 Sep 2011 11:37:48 +0000 (+0300) Subject: Hide bufSize when NDEBUG is defined X-Git-Tag: 2.408-rc1~68 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/80575308ffe4ee59676acf2a3726e8fdc159fdd3 Hide bufSize when NDEBUG is defined --- diff --git a/projects/stargazer/plugins/other/rscript/rscript.cpp b/projects/stargazer/plugins/other/rscript/rscript.cpp index b4bbb1a0..d1768ee6 100644 --- a/projects/stargazer/plugins/other/rscript/rscript.cpp +++ b/projects/stargazer/plugins/other/rscript/rscript.cpp @@ -357,7 +357,11 @@ while (it != authorizedUsers.end()) } } //----------------------------------------------------------------------------- +#ifdef NDEBUG +bool REMOTE_SCRIPT::PreparePacket(char * buf, size_t, uint32_t ip, RS_USER & rsu, bool forceDisconnect) const +#else bool REMOTE_SCRIPT::PreparePacket(char * buf, size_t bufSize, uint32_t ip, RS_USER & rsu, bool forceDisconnect) const +#endif { RS_PACKET_HEADER packetHead;