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 3DA90941A69 for ; Thu, 24 Aug 2023 14:15:04 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=KRRRNwEAlNBbzoKgrVVUuWW2WKjWTIM7PkWNCduTmMo=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id: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=1692886502; v=1; b=h6OmSzXJEh+t3QaS5rts0NZ9sG4yEqwkm8NcpX/uGWB8v8MuydTurCz50+4Ob1q2RxuD74it msavL3MM5Jm1KXXx1cw/LDjh8zZF3LOUSEbnIpxpCBVCEHuXfthK7DG7DO6zE/UzMZ9JGNTMQwN sV7s/XC5WCj6YdDs2lHilPR0= X-Received: by 127.0.0.2 with SMTP id txkIYY7687511xabEiJXXhIn; Thu, 24 Aug 2023 07:15:02 -0700 X-Received: from smtp26.services.sfr.fr (smtp26.services.sfr.fr [93.17.128.212]) by mx.groups.io with SMTP id smtpd.web10.4636.1692855760253701143 for ; Wed, 23 Aug 2023 22:42:41 -0700 X-mail-filterd: {"version":"1.7.1","queueID":"4RWX6Q2fq3z1LQKdN","contextId": "b7f77f55-f312-4f80-9834-dee3e35a172c"} 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 4RWX6Q2fq3z1LQKdN; Thu, 24 Aug 2023 07:42:38 +0200 (CEST) X-mail-filterd: {"version":"1.7.1","queueID":"4RWX6Q1pvRz1LQKdC","contextId": "27630189-6a28-4f60-857e-9191628623cd"} 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 4RWX6Q1pvRz1LQKdC; Thu, 24 Aug 2023 07:42:38 +0200 (CEST) From: Elyes Haouas To: devel@edk2.groups.io Cc: Elyes Haouas Subject: [edk2-devel] [PATCH 1/4] EmbeddedPkg: Use C99 flexible arrays Date: Thu, 24 Aug 2023 07:42:11 +0200 Message-Id: <20230824054214.2839-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: KmM3cneVzhVlX6oR6d4bcc0Bx7686176AA= 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=h6OmSzXJ; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io 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 changed, 2 insertions(+), 2 deletions(-) diff --git a/EmbeddedPkg/Include/fdt.h b/EmbeddedPkg/Include/fdt.h index 120dbc8bc6..f64695da5c 100644 --- a/EmbeddedPkg/Include/fdt.h +++ b/EmbeddedPkg/Include/fdt.h @@ -81,14 +81,14 @@ struct fdt_reserve_entry { =0D struct fdt_node_header {=0D fdt32_t tag;=0D - char name[0];=0D + char name[];=0D };=0D =0D struct fdt_property {=0D fdt32_t tag;=0D fdt32_t len;=0D fdt32_t nameoff;=0D - char data[0];=0D + char data[];=0D };=0D =0D #endif /* !__ASSEMBLY */=0D --=20 2.40.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108003): https://edk2.groups.io/g/devel/message/108003 Mute This Topic: https://groups.io/mt/100935948/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-