]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: fix fgets unchecked return value warning on alpha
authorAndreas Henriksson <andreas@fatal.se>
Fri, 21 Aug 2015 14:13:28 +0000 (16:13 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 24 Aug 2015 08:55:41 +0000 (10:55 +0200)
commitec3d3e67d9a08533232b3ac4e07a37482a05edea
treed5d4664a8cd63fa395b028a27c649fa5901e0f0d
parent88294abaf9bb244601322edca1e1b825ebf39270
hwclock: fix fgets unchecked return value warning on alpha

Build warning:
sys-utils/hwclock-cmos.c: In function 'is_in_cpuinfo':
sys-utils/hwclock-cmos.c:162:4: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
    fgets(field, 256, cpuinfo);

Full build log:
https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=alpha&ver=2.26.2-9&stamp=1440078034

Detected by/via:
https://qa.debian.org/bls/packages/u/util-linux.html

This change has never actually been (build-)tested on alpha, but
hopefully the change should fix the warning.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
sys-utils/hwclock-cmos.c