Commit 031715e3 authored by Petri Latvala's avatar Petri Latvala

lib/igt_x86: Mock-use variable to silence static analysis

x86_features_to_string() uses a repeatable pattern that increments a
pointer for each feature string, leaving a dead assignment for the
last one. Add a (void)line to the end just to silence static analysis.
Signed-off-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent 4fcf5563
Pipeline #16565 passed with stages
in 2 minutes and 14 seconds
......@@ -175,6 +175,8 @@ char *igt_x86_features_to_string(unsigned features, char *line)
if (features & AVX2)
line += sprintf(line, ", avx2");
(void)line;
return ret;
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment