From 95646306f1bb9b4ff33650dc0c955cf89fc78b0b Mon Sep 17 00:00:00 2001 From: moonglow Date: Mon, 11 Jan 2021 14:40:54 +0300 Subject: [PATCH] *fix flexible array member declaration --- Src/pcanfd_ucan.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/pcanfd_ucan.h b/Src/pcanfd_ucan.h index f52a9ff..b95145b 100644 --- a/Src/pcanfd_ucan.h +++ b/Src/pcanfd_ucan.h @@ -227,7 +227,7 @@ struct ucan_rx_msg { uint8_t client; uint16_t flags; uint32_t can_id; - uint8_t d[0]; + uint8_t d[]; }__attribute__((packed)); /* uCAN error types */ @@ -294,7 +294,7 @@ struct ucan_tx_msg { uint8_t client; uint16_t flags; uint32_t can_id; - uint8_t d[0]; + uint8_t d[]; }__attribute__((packed)); /* uCAN Tx Pause record */