From: Elyes Haouas <ehaouas@noos.fr>
To: devel@edk2.groups.io
Cc: Elyes Haouas <ehaouas@noos.fr>
Subject: [edk2-devel] [PATCH 5/6] MdeModulePkg/Universal/ResetSystemPei: Use C99 flexible arrays
Date: Thu, 24 Aug 2023 08:07:35 +0200 [thread overview]
Message-ID: <20230824060736.3543-5-ehaouas@noos.fr> (raw)
In-Reply-To: <20230824060736.3543-1-ehaouas@noos.fr>
One-element or zero-length arrays have been deprecated since
last millennium.
Use C99 flexible arrays instead, it allows the compiler to
generate errors when the flexible array does not occur at the
end in the structure.
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
---
MdeModulePkg/Universal/ResetSystemPei/ResetSystem.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MdeModulePkg/Universal/ResetSystemPei/ResetSystem.h b/MdeModulePkg/Universal/ResetSystemPei/ResetSystem.h
index a04e4840e6..28bad474e1 100644
--- a/MdeModulePkg/Universal/ResetSystemPei/ResetSystem.h
+++ b/MdeModulePkg/Universal/ResetSystemPei/ResetSystem.h
@@ -36,7 +36,7 @@
typedef struct {
UINT32 Signature;
UINT32 Count;
- EFI_RESET_SYSTEM ResetFilters[0]; // ResetFilters[PcdGet32 (PcdMaximumResetNotifies)]
+ EFI_RESET_SYSTEM ResetFilters[]; // ResetFilters[PcdGet32 (PcdMaximumResetNotifies)]
} RESET_FILTER_LIST;
#define RESET_FILTER_LIST_SIGNATURE SIGNATURE_32('r', 's', 't', 'l')
--
2.40.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108011): https://edk2.groups.io/g/devel/message/108011
Mute This Topic: https://groups.io/mt/100935957/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2023-08-24 14:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 6:07 [edk2-devel] [PATCH 1/6] UefiPayloadPkg: Use C99 flexible arrays Elyes Haouas
2023-08-24 6:07 ` [edk2-devel] [PATCH 2/6] CryptoPkg/Include/Library:: " Elyes Haouas
2023-08-24 6:07 ` [edk2-devel] [PATCH 3/6] EmulatorPkg/Include/Ppi:: " Elyes Haouas
2023-08-24 6:07 ` [edk2-devel] [PATCH 4/6] MdeModulePkg/Include/Guid:: " Elyes Haouas
2023-08-24 6:07 ` Elyes Haouas [this message]
2023-08-24 6:07 ` [edk2-devel] [PATCH 6/6] UefiCpuPkg/Library/CpuPageTableLib: " Elyes Haouas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230824060736.3543-5-ehaouas@noos.fr \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox