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> --- EmulatorPkg/Include/Ppi/EmuThunk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EmulatorPkg/Include/Ppi/EmuThunk.h b/EmulatorPkg/Include/Ppi/EmuThunk.h index c78ad692ed..7bc6feec4d 100644 --- a/EmulatorPkg/Include/Ppi/EmuThunk.h +++ b/EmulatorPkg/Include/Ppi/EmuThunk.h @@ -111,7 +111,7 @@ typedef struct { CHAR8 **Argv; CHAR8 **Envp; UINTN PersistentMemorySize; - UINT8 PersistentMemory[0]; + UINT8 PersistentMemory[]; } EMU_THUNK_PPI; extern EFI_GUID gEmuThunkPpiGuid; -- 2.40.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108008): https://edk2.groups.io/g/devel/message/108008 Mute This Topic: https://groups.io/mt/100935954/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-