mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-24 14:45:46 +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
@@ -61,7 +61,7 @@ static int find_and_open_devices(void)
|
||||
if (!fl)
|
||||
break;
|
||||
|
||||
fgets(vendor_id, 8, fl);
|
||||
igt_assert_neq(fgets(vendor_id, 8, fl), NULL);
|
||||
fclose(fl);
|
||||
|
||||
venid = strtoul(vendor_id, NULL, 16);
|
||||
|
||||
Reference in New Issue
Block a user