summaryrefslogtreecommitdiff
path: root/lib/igt_debugfs.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-03-14 09:52:24 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2017-03-14 11:07:20 +0000
commitf6eba0b5cfd93ca92007e2071b8ad4a52185e26a (patch)
tree6e71ca7796c0914845f1a9fca884c40a2fd4ed71 /lib/igt_debugfs.c
parent13d946ef2f92cdefc2fb5c493a14a438868d3a86 (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_debugfs.c')
-rw-r--r--lib/igt_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
index 0a991a1f..12ee34e0 100644
--- a/lib/igt_debugfs.c
+++ b/lib/igt_debugfs.c
@@ -887,7 +887,7 @@ bool igt_drop_caches_has(uint64_t val)
mask = 0;
file = igt_debugfs_fopen("i915_gem_drop_caches", "r");
if (file) {
- fscanf(file, "0x%" PRIx64, &mask);
+ igt_ignore_warn(fscanf(file, "0x%" PRIx64, &mask));
fclose(file);
}