From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 9D375D80D5A for ; Thu, 24 Aug 2023 14:15:08 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=B/ZoncDSX7jHsKQq98+7DJMB4Ag1xFwP8SSg38BY0Bc=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1692886507; v=1; b=N27sMbewcD8SyKXAPEdaXcWhSU9DUYTcAi6MICMDA7ourfQeRVELUqC7FwCn1fMs+jtD0UZJ hgslQYgeI1s0DLjtww8q0FK6qgqNYNXeXclEysucNN0rkFkze+1BJRYsjuYpuD7B8lIiDOAynNJ F9QO9MpLA2rvjM6dsw86hKhg= X-Received: by 127.0.0.2 with SMTP id ueDFYY7687511xCv7edcUMoT; Thu, 24 Aug 2023 07:15:07 -0700 X-Received: from smtp26.services.sfr.fr (smtp26.services.sfr.fr [93.17.128.212]) by mx.groups.io with SMTP id smtpd.web11.4885.1692857260833086806 for ; Wed, 23 Aug 2023 23:07:41 -0700 X-mail-filterd: {"version":"1.7.1","queueID":"4RWXgH3Vk0z1LQKdY","contextId": "5f3afa22-c100-4f14-8df9-b76b6f952ca9"} X-Received: from localhost.localdomain (179.211.201.77.rev.sfr.net [77.201.211.179]) by msfrf2636.sfr.fr (SMTP Server) with ESMTP id 4RWXgH3Vk0z1LQKdY; Thu, 24 Aug 2023 08:07:39 +0200 (CEST) X-mail-filterd: {"version":"1.7.1","queueID":"4RWXgH2gC2z1LQKdP","contextId": "ca7b0eaf-6cd8-42e5-b7cc-d1772086751e"} X-sfr-mailing: LEGIT X-sfr-spamrating: 40 X-sfr-spam: not-spam X-Received: from localhost.localdomain (179.211.201.77.rev.sfr.net [77.201.211.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ehaouas@noos.fr) by msfrf2636.sfr.fr (SMTP Server) with ESMTPSA id 4RWXgH2gC2z1LQKdP; Thu, 24 Aug 2023 08:07:39 +0200 (CEST) From: Elyes Haouas To: devel@edk2.groups.io Cc: Elyes Haouas Subject: [edk2-devel] [PATCH 3/6] EmulatorPkg/Include/Ppi:: Use C99 flexible arrays Date: Thu, 24 Aug 2023 08:07:33 +0200 Message-Id: <20230824060736.3543-3-ehaouas@noos.fr> In-Reply-To: <20230824060736.3543-1-ehaouas@noos.fr> References: <20230824060736.3543-1-ehaouas@noos.fr> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ehaouas@noos.fr List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Wozha1emU0FcMiVvnPudwdSXx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=N27sMbew; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EmulatorPkg/Include/Ppi/EmuThunk.h b/EmulatorPkg/Include/Ppi/E= muThunk.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;=0D CHAR8 **Envp;=0D UINTN PersistentMemorySize;=0D - UINT8 PersistentMemory[0];=0D + UINT8 PersistentMemory[];=0D } EMU_THUNK_PPI;=0D =0D extern EFI_GUID gEmuThunkPpiGuid;=0D --=20 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/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-