1From e46d12ba3ac9ed1f06b59d000684cfbe3ed61180 Mon Sep 17 00:00:00 2001
2From: Michael Forney <mforney@mforney.org>
3Date: Sun, 16 Aug 2020 17:15:34 -0700
4Subject: [PATCH] Use flexible array member instead of zero-length array
5
6---
7 setpci.c | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
9
10diff --git a/setpci.c b/setpci.c
11index 2a2c72a..3e98d49 100644
12--- a/setpci.c
13+++ b/setpci.c
14@@ -41,7 +41,7 @@ struct op {
15 unsigned int width; /* Byte width of the access */
16 unsigned int num_values; /* Number of values to write; 0=read */
17 unsigned int number; /* The n-th capability of that id */
18- struct value values[0];
19+ struct value values[];
20 };
21
22 struct group {
23--
242.49.0
25