mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 22:32:57 +00:00
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 <daniel.vetter@ffwll.ch> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@ static void query(int fd, bool busy)
|
||||
busy ? "busy" : "idle", elapsed(&start, &end, count));
|
||||
|
||||
if (busy)
|
||||
read(fd, buf, sizeof(buf));
|
||||
igt_assert_eq(read(fd, buf, sizeof(buf)), sizeof(buf));
|
||||
}
|
||||
|
||||
igt_main
|
||||
|
||||
Reference in New Issue
Block a user