Enable more compiler warnings and treat them as errors.

This commit is contained in:
Brian Phlipot
2023-02-02 11:54:17 -08:00
committed by teejusb
parent f8f6f12999
commit 4a6b1a743c
141 changed files with 625 additions and 757 deletions
+5 -10
View File
@@ -176,20 +176,15 @@ int64_t pos_map_queue::Search( int64_t iSourceFrame, bool *bApproximate ) const
* SoundStopped has been called.
* 3. Underflow; we'll be given a larger frame number than we know about.
*/
#if defined(WIN32)
#define I64F "%I64i"
#elif defined(__x86_64__)
#define I64F "%li"
#else
#define I64F "%lli"
#endif
static RageTimer last;
if( last.PeekDeltaTime() >= 1.0f )
{
last.GetDeltaTime();
LOG->Trace( "Approximate sound time: driver frame " I64F ", m_pImpl->m_Queue frame " I64F ".." I64F " (dist " I64F "), closest position is " I64F,
iSourceFrame, pClosestBlock->m_iDestFrame, pClosestBlock->m_iDestFrame+pClosestBlock->m_iFrames,
iClosestPositionDist, iClosestPosition );
std::stringstream ss;
ss << "Approximate sound time: driver frame " << iSourceFrame << ", m_pImpl->m_Queue frame "
<< pClosestBlock->m_iDestFrame << ".." << (pClosestBlock->m_iDestFrame+pClosestBlock->m_iFrames)
<< " (dist " << iClosestPositionDist << "), closest position is " << iClosestPosition;
LOG->Trace( "%s", ss.str().c_str() );
}
if( bApproximate )