]> git.stg.codes - stg.git/commitdiff
Hide bufSize when NDEBUG is defined
authorMaxim Mamontov <faust.madf@gmail.com>
Wed, 14 Sep 2011 11:37:48 +0000 (14:37 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Wed, 14 Sep 2011 11:37:48 +0000 (14:37 +0300)
projects/stargazer/plugins/other/rscript/rscript.cpp

index b4bbb1a0b40e177a1aca6c688cbeed2d4fd37a61..d1768ee610d85d4c7bd828e44d18019840ad90f4 100644 (file)
@@ -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;