From f6eba0b5cfd93ca92007e2071b8ad4a52185e26a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 14 Mar 2017 09:52:24 +0000 Subject: 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 --- lib/igt_gt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/igt_gt.c') 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); -- cgit v1.2.3