[Box Backup-dev] NDEBUG in Win32 release (was: COMMIT r279 - box/chris/win32/vc2005-compile-fixes/lib/backupclient)
Ben Summers
boxbackup-dev at fluffy.co.uk
Fri Dec 23 08:43:30 GMT 2005
On 22 Dec 2005, at 23:08, subversion at fluffy.co.uk wrote:
> Author: chris
> Date: 2005-12-22 23:08:00 +0000 (Thu, 22 Dec 2005)
> New Revision: 279
>
> Modified:
> box/chris/win32/vc2005-compile-fixes/lib/backupclient/
> BackupStoreFile.cpp
> Log:
> * BackupStoreFile.cpp
> - Don't log messages about reallocating the encoding buffer on Win32,
> as it fills up the system event log very quickly
[snip]
> +#ifndef WIN32
> TRACE2("Reallocating EncodingBuffer from %d to %d\n",
> mBufferSize, NewSize);
> +#endif
[snip]
Set NDEBUG as a preprocessor definition in your release build
settings, and all the trace statements will not be compiled in. It'll
also remove some code which really shouldn't be in a release build.
Ben
More information about the Boxbackup-dev
mailing list