wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
10.24k stars 691 forks source link

Silence GCC fscanf warning in TracySysPower.cpp #924

Closed fknorr closed 1 week ago

fknorr commented 1 week ago

fscanf is [[warn_unused_result]], which triggers -Wunused-result in GCC 13.2 + Ubuntu 24.04.

In this instance I believe it is correct for maxRange to remain unchanged if reading from sysfs should fail for some reason, since that error condition is checked in line 133.