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 <>
Cc: Chris Wilson <>
Reviewed-by: Arkadiusz Hiler's avatarArkadiusz Hiler <>
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");
return ret;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment