Mark struct ratp_bb as packed to make sure that it has the same alignment as struct ratp_bb_md_response and struct ratp_bb_mw_response where it's used. GCC9 catches this mismatch and generates a -Waddress-of-packed-member warning Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> --- include/ratp_bb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ratp_bb.h b/include/ratp_bb.h index b6699979b6..9162e7cbe5 100644 --- a/include/ratp_bb.h +++ b/include/ratp_bb.h @@ -32,7 +32,7 @@ struct ratp_bb { uint16_t type; uint16_t flags; uint8_t data[]; -}; +} __packed; struct ratp_bb_pkt { unsigned int len; -- 2.21.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox