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 <ehao...@noos.fr>
---
 MdeModulePkg/Include/Guid/ExtendedFirmwarePerformance.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/MdeModulePkg/Include/Guid/ExtendedFirmwarePerformance.h 
b/MdeModulePkg/Include/Guid/ExtendedFirmwarePerformance.h
index 20be7654c8..25dfc5b86b 100644
--- a/MdeModulePkg/Include/Guid/ExtendedFirmwarePerformance.h
+++ b/MdeModulePkg/Include/Guid/ExtendedFirmwarePerformance.h
@@ -107,7 +107,7 @@ typedef struct {
   /// ASCII string describing the module. Padding supplied at the end if 
necessary with null characters (0x00).
   /// It may be module name, function name, or token name.
   ///
-  CHAR8                                          String[0];
+  CHAR8                                          String[];
 } FPDT_DYNAMIC_STRING_EVENT_RECORD;
 
 //
@@ -143,7 +143,7 @@ typedef struct {
   /// ASCII string describing the module. Padding supplied at the end if 
necessary with null characters (0x00).
   /// It is the function name.
   ///
-  CHAR8                                          String[0];
+  CHAR8                                          String[];
 } FPDT_DUAL_GUID_STRING_EVENT_RECORD;
 
 //
@@ -209,7 +209,7 @@ typedef struct {
   ///
   /// ASCII string describing the module. Padding supplied at the end if 
necessary with null characters (0x00).
   ///
-  CHAR8                                          String[0];
+  CHAR8                                          String[];
 } FPDT_GUID_QWORD_STRING_EVENT_RECORD;
 
 #pragma pack()
-- 
2.40.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#108009): https://edk2.groups.io/g/devel/message/108009
Mute This Topic: https://groups.io/mt/100935955/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to