From 47f6b1305cc3752f318a555b932e194e1500c1d8 Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Wed, 25 Mar 2015 16:42:57 +0000 Subject: igt.cocci: check the return values of various functions Add rules to fix unused-result warnings when compiling with _FORTIFY_SOURCE defined and apply them to the library and tests. Acked-by: Daniel Vetter Signed-off-by: Thomas Wood --- lib/intel_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/intel_os.c') diff --git a/lib/intel_os.c b/lib/intel_os.c index 1badd3ec..3321a8de 100644 --- a/lib/intel_os.c +++ b/lib/intel_os.c @@ -255,7 +255,7 @@ intel_purge_vm_caches(void) if (fd < 0) return; - write(fd, "3\n", 2); + igt_assert_eq(write(fd, "3\n", 2), 2); close(fd); } -- cgit v1.2.3