From: <man...@us...> - 2015-02-27 11:22:31
|
Revision: 4795 http://sourceforge.net/p/modplug/code/4795 Author: manxorist Date: 2015-02-27 11:22:19 +0000 (Fri, 27 Feb 2015) Log Message: ----------- [Ref] Silence unused variable warning when compiled without assertions. Modified Paths: -------------- trunk/OpenMPT/common/typedefs.h trunk/OpenMPT/soundlib/Fastmix.cpp Modified: trunk/OpenMPT/common/typedefs.h =================================================================== --- trunk/OpenMPT/common/typedefs.h 2015-02-26 23:25:59 UTC (rev 4794) +++ trunk/OpenMPT/common/typedefs.h 2015-02-27 11:22:19 UTC (rev 4795) @@ -569,6 +569,8 @@ #define MPT_UNREFERENCED_PARAMETER(x) (void)(x) #endif +#define MPT_UNUSED_VARIABLE(x) MPT_UNREFERENCED_PARAMETER(x) + OPENMPT_NAMESPACE_END Modified: trunk/OpenMPT/soundlib/Fastmix.cpp =================================================================== --- trunk/OpenMPT/soundlib/Fastmix.cpp 2015-02-26 23:25:59 UTC (rev 4794) +++ trunk/OpenMPT/soundlib/Fastmix.cpp 2015-02-27 11:22:19 UTC (rev 4795) @@ -453,7 +453,7 @@ uint32 targetpos = chn.nPos + (BufferLengthToSamples(nSmpCount, chn) >> 16); MixFuncTable::Functions[functionNdx | (chn.nRampLength ? MixFuncTable::ndxRamp : 0)](chn, m_Resampler, pbuffer, nSmpCount); - MPT_ASSERT(chn.nPos == targetpos); + MPT_ASSERT(chn.nPos == targetpos); MPT_UNUSED_VARIABLE(targetpos); chn.nROfs += *(pbufmax-2); chn.nLOfs += *(pbufmax-1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |