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.
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.