2020-04-20 12:08:43

by Szymon Janc

[permalink] [raw]
Subject: [PATCH 2/4] sap: Fix compilation with GCC 10

---
profiles/sap/sap.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/profiles/sap/sap.h b/profiles/sap/sap.h
index 16c333a9b..6e78d6c2d 100644
--- a/profiles/sap/sap.h
+++ b/profiles/sap/sap.h
@@ -76,7 +76,7 @@ struct sap_parameter {
uint8_t id;
uint8_t reserved;
uint16_t len;
- uint8_t val[0];
+ uint8_t val[];
/*
* Padding bytes 0-3 bytes
*/
@@ -86,7 +86,7 @@ struct sap_message {
uint8_t id;
uint8_t nparam;
uint16_t reserved;
- struct sap_parameter param[0];
+ struct sap_parameter param[];
} __attribute__((packed));

#define SAP_BUF_SIZE 512
--
2.26.0