diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-14 09:52:24 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-14 11:07:20 +0000 |
commit | f6eba0b5cfd93ca92007e2071b8ad4a52185e26a (patch) | |
tree | 6e71ca7796c0914845f1a9fca884c40a2fd4ed71 /lib/igt_gt.c | |
parent | 13d946ef2f92cdefc2fb5c493a14a438868d3a86 (diff) |
lib: Squelch a pair of ignore result warnings
igt_debugfs.c: In function 'igt_drop_caches_has':
igt_debugfs.c:890:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(file, "0x%" PRIx64, &mask);
^
CC igt_aux.lo
CC igt_gt.lo
igt_gt.c: In function 'igt_force_gpu_reset':
igt_gt.c:382:8: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(file, "%d", &wedged);
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_gt.c')
-rw-r--r-- | lib/igt_gt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_gt.c b/lib/igt_gt.c index 024908b8..b8e08e9a 100644 --- a/lib/igt_gt.c +++ b/lib/igt_gt.c @@ -379,7 +379,7 @@ void igt_force_gpu_reset(void) igt_assert(file); wedged = 1; - fscanf(file, "%d", &wedged); + igt_ignore_warn(fscanf(file, "%d", &wedged)); fclose(file); igt_assert(!wedged); |