[edk2-devel] [PATCH 3/3] UefiCpuPkg/Include/Guid: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- UefiCpuPkg/Include/Guid

[edk2-devel] [PATCH 2/3] OvmfPkg/Library/CcExitLib: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- OvmfPkg/Library/CcExitLib

[edk2-devel] [PATCH 1/3] MdeModulePkg/Include/UniversalPayload: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- MdeModulePkg/Include/UniversalPayload

[edk2-devel] [PATCH 3/6] EmulatorPkg/Include/Ppi:: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- EmulatorPkg/Include/Ppi/EmuThunk.h | 2

[edk2-devel] [PATCH 6/6] UefiCpuPkg/Library/CpuPageTableLib: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- UefiCpuPkg/Library/CpuPageTableLib

[edk2-devel] [PATCH 1/6] UefiPayloadPkg: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- UefiPayloadPkg/Include/Coreboot.h

[edk2-devel] [PATCH 4/6] MdeModulePkg/Include/Guid:: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- MdeModulePkg/Include/Guid

[edk2-devel] [PATCH 5/6] MdeModulePkg/Universal/ResetSystemPei: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- MdeModulePkg/Universal/ResetSystemPei

[edk2-devel] [PATCH 2/4] MdePkg/Include: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- MdePkg/Include/IndustryStandard

[edk2-devel] [PATCH 2/6] CryptoPkg/Include/Library:: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- CryptoPkg/Include/Library/BaseCryptLib.h

[edk2-devel] [PATCH 3/4] MdeModulePkg/Library/FrameBufferBltLib: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- MdeModulePkg/Library/FrameBufferBltLib

[edk2-devel] [PATCH 1/4] EmbeddedPkg: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- EmbeddedPkg/Include/fdt.h | 4 ++-- 1 file

[edk2-devel] [PATCH 4/4] UefiPayloadPkg: Use C99 flexible arrays

2023-08-24 Thread Elyes Haouas
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 --- UefiPayloadPkg/Include/Coreboot.h | 10

[edk2-devel] [PATCH] BaseTools: Use only 1 semicolon at end of statement

2023-08-21 Thread Elyes Haouas
Signed-off-by: Elyes Haouas --- BaseTools/Source/C/DevicePath/DevicePathUtilities.c | 2 +- BaseTools/Source/C/GenFw/GenFw.c| 2 +- BaseTools/Source/C/LzmaCompress/Sdk/C/LzmaDec.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BaseTools/Source/C

[edk2-devel] [PATCH] UefiCpuPkg/Library: Use semicolon instead of comma at end of statement

2023-08-21 Thread Elyes Haouas
Signed-off-by: Elyes Haouas --- UefiCpuPkg/Library/MpInitLib/X64/AmdSev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UefiCpuPkg/Library/MpInitLib/X64/AmdSev.c b/UefiCpuPkg/Library/MpInitLib/X64/AmdSev.c index c9f0984f41..3b92beea31 100644 --- a/UefiCpuPkg/Library

[edk2-devel] [PATCH] Use C99 flexible arrays

2023-08-20 Thread Elyes Haouas
Use C99 flexible arrays instead of older style of one-element or zero-length arrays. 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 --- EmbeddedPkg/Include/fdt.h | 4