tracy: Add braces around if statement

Fix a warning about missing braces around an empty
statement when TRACY_VERBOSE is not defined

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2373>
This commit is contained in:
Jan Schmidt 2024-11-24 22:46:55 +11:00
parent 6d09f33441
commit bcd358bf5d

View file

@ -1133,7 +1133,9 @@ void SysTraceWorker( void* ptr )
SetThreadName( "Tracy Sampling" );
InitRpmalloc();
sched_param sp = { 99 };
if( pthread_setschedparam( pthread_self(), SCHED_FIFO, &sp ) != 0 ) TracyDebug( "Failed to increase SysTraceWorker thread priority!\n" );
if( pthread_setschedparam( pthread_self(), SCHED_FIFO, &sp ) != 0 ) {
TracyDebug( "Failed to increase SysTraceWorker thread priority!\n" );
}
auto ctxBufferIdx = s_ctxBufferIdx;
auto ringArray = s_ring;
auto numBuffers = s_numBuffers;