[igt-dev] [PATCH i-g-t v2] tools/i915-perf: workaround overzelous compiler warnings

Lionel Landwerlin lionel.g.landwerlin at intel.com
Thu Feb 20 13:34:16 UTC 2020


Take 2.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
 tools/i915-perf/i915_perf_recorder_commands.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/i915-perf/i915_perf_recorder_commands.h b/tools/i915-perf/i915_perf_recorder_commands.h
index 4855d80f..44dd4438 100644
--- a/tools/i915-perf/i915_perf_recorder_commands.h
+++ b/tools/i915-perf/i915_perf_recorder_commands.h
@@ -35,5 +35,6 @@ struct recorder_command_base {
 };
 
 struct recorder_command_dump {
-	uint8_t path[0];
+	uint8_t unused;
+	uint8_t path[];
 };
-- 
2.25.0



More information about the igt-dev mailing list