From d1df8b2df0b0667af62e412e678bbc8e19309698 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Wed, 6 May 2026 10:22:59 +0200 Subject: [PATCH] Fix initialization of string in otp_keystore tag (fix build error) Emerged in newer gcc15, due to -Wunterminated-string-initialization added to -Wall --- include/otp_keystore.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/otp_keystore.h b/include/otp_keystore.h index 3fdd2d7abe..efe47eff0f 100644 --- a/include/otp_keystore.h +++ b/include/otp_keystore.h @@ -54,7 +54,8 @@ struct KEYSTORE_HDR_PACKED wolfBoot_otp_hdr { uint32_t version; }; -static const char KEYSTORE_HDR_MAGIC[8] = "WOLFBOOT"; +static const char KEYSTORE_HDR_MAGIC[8] = + {'W', 'O', 'L', 'F', 'B', 'O', 'O', 'T'}; #define KEYSTORE_MAX_PUBKEYS \ ((OTP_SIZE - OTP_UDS_STORAGE_SIZE - OTP_HDR_SIZE) / SIZEOF_KEYSTORE_SLOT)