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 55782941AD5 for ; Thu, 24 Aug 2023 16:35:40 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Y+S3notwj3nN4hN+9lc1fRqcFWgXovbW04ti5T6P+t8=; 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=1692894939; v=1; b=YYQvz3hxs7d2vCCU4Gg10KhE5sw3kRIIXnc/FwilXrGxo2QeEdCnJ/9k9pcYPoM9S5oSZGC0 ByZU8WZbjSi/+ewvJ/WcToabET5rukH/mW3Ef/Dbnsp5ECYWNVp4l2oMaHzSC8G+PPKQUwKOZ9w aoZ7Ce018zsP/akfM/PAVEi8= X-Received: by 127.0.0.2 with SMTP id YpPRYY7687511xIsNHIsDAbo; Thu, 24 Aug 2023 09:35:39 -0700 X-Received: from smtp26.services.sfr.fr (smtp26.services.sfr.fr [93.17.128.217]) by mx.groups.io with SMTP id smtpd.web11.836.1692892492901702577 for ; Thu, 24 Aug 2023 08:54:53 -0700 X-mail-filterd: {"version":"1.7.1","queueID":"4RWnhq3dK5z1LQKcd","contextId": "b984a77c-48e8-49d2-a5a9-801c4696a4cd"} X-Received: from localhost.localdomain (179.211.201.77.rev.sfr.net [77.201.211.179]) by msfrf2641.sfr.fr (SMTP Server) with ESMTP id 4RWnhq3dK5z1LQKcd; Thu, 24 Aug 2023 17:54:51 +0200 (CEST) X-mail-filterd: {"version":"1.7.1","queueID":"4RWnhq2N6kz1LQKdL","contextId": "4f013d88-d074-4689-9fbc-1fb2dbe69f5c"} 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 msfrf2641.sfr.fr (SMTP Server) with ESMTPSA id 4RWnhq2N6kz1LQKdL; Thu, 24 Aug 2023 17:54:51 +0200 (CEST) From: Elyes Haouas To: devel@edk2.groups.io Cc: Elyes Haouas Subject: [edk2-devel] [PATCH 3/3] UefiCpuPkg/Include/Guid: Use C99 flexible arrays Date: Thu, 24 Aug 2023 17:54:37 +0200 Message-Id: <20230824155437.3218-3-ehaouas@noos.fr> In-Reply-To: <20230824155437.3218-1-ehaouas@noos.fr> References: <20230824155437.3218-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: uAay1PE5hIBpajOZKqmxhKQ5x7686176AA= 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=YYQvz3hx; 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 --- UefiCpuPkg/Include/Guid/MicrocodePatchHob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/Include/Guid/MicrocodePatchHob.h b/UefiCpuPkg/Inclu= de/Guid/MicrocodePatchHob.h index 2772c41a16..405b53075c 100644 --- a/UefiCpuPkg/Include/Guid/MicrocodePatchHob.h +++ b/UefiCpuPkg/Include/Guid/MicrocodePatchHob.h @@ -38,7 +38,7 @@ typedef struct { // If no microcode patch is detected for certain processor, the relating= =0D // element will be set to MAX_UINT64.=0D //=0D - UINT64 ProcessorSpecificPatchOffset[0];=0D + UINT64 ProcessorSpecificPatchOffset[];=0D } EDKII_MICROCODE_PATCH_HOB;=0D =0D #endif=0D --=20 2.40.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108019): https://edk2.groups.io/g/devel/message/108019 Mute This Topic: https://groups.io/mt/100938778/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-