mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Silence GCC fscanf warning in TracySysPower.cpp
fscanf is [[warn_unused_result]], which triggers -Wunused-result. In this instance it is correct for maxRange to remain unchanged if reading from sysfs should fail for some reason.
This commit is contained in:
parent
16ef91c238
commit
7ef690bd5a
@ -85,7 +85,7 @@ void SysPower::ScanDirectory( const char* path, int parent )
|
||||
FILE* f = fopen( tmp, "r" );
|
||||
if( f )
|
||||
{
|
||||
fscanf( f, "%" PRIu64, &maxRange );
|
||||
(void)fscanf( f, "%" PRIu64, &maxRange );
|
||||
fclose( f );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user