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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
16 matches
Mail list logo