From 7c1e4b72d25b732f4bf0ddb0a54c9f824a08f059 Mon Sep 17 00:00:00 2001 From: "David M. Syzdek" Date: Tue, 12 Jul 2022 15:49:32 -0800 Subject: libtinytac: disabling compiler padded warning for specific structs --- include/tinytac.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/tinytac.h b/include/tinytac.h index 5e1293a..73be420 100644 --- a/include/tinytac.h +++ b/include/tinytac.h @@ -236,6 +236,7 @@ struct _tinytac_authen_reply }; +#pragma GCC diagnostic ignored "-Wpadded" struct _tinytac_authen_continue { uint16_t bdy_user_msg_len; @@ -243,6 +244,7 @@ struct _tinytac_authen_continue uint8_t bdy_flags; uint8_t bdy_bytes[]; }; +#pragma GCC diagnostic pop struct _tinytac_author_request @@ -284,6 +286,7 @@ struct _tinytac_account_request }; +#pragma GCC diagnostic ignored "-Wpadded" struct _tinytac_account_reply { uint16_t bdy_server_msg_len; @@ -291,6 +294,7 @@ struct _tinytac_account_reply uint8_t bdy_status; uint8_t bdy_bytes[]; }; +#pragma GCC diagnostic pop ////////////////// -- cgit v1.2.3