From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.10566.1634223579478280928 for ; Thu, 14 Oct 2021 07:59:39 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: pierre.gondois@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 96C5511D4; Thu, 14 Oct 2021 07:59:33 -0700 (PDT) Received: from e120189.home (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DE0773F694; Thu, 14 Oct 2021 07:59:32 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io, Sami Mujawar , Alexei Fedorov Subject: [PATCH 1/1] DynamicTablesPkg: Fix void pointer arithmetic Date: Thu, 14 Oct 2021 15:59:22 +0100 Message-Id: <20211014145922.19790-1-Pierre.Gondois@arm.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable From: Pierre Gondois Building the DynamicTablesPkg with the additional -Wpointer-arith flag triggers the following error: "pointer of type =E2=80=98void *=E2=80=99 used in arithmetic [-Werror=3Dpointer-arith]" Cast the void pointer to fix the error. Signed-off-by: Pierre Gondois --- .../Common/TableHelperLib/ConfigurationManagerObjectParser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynamicTablesPkg/Library/Common/TableHelperLib/Configuration= ManagerObjectParser.c b/DynamicTablesPkg/Library/Common/TableHelperLib/Co= nfigurationManagerObjectParser.c index 2337d47e3fb3..0bdbfbb99c33 100644 --- a/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManager= ObjectParser.c +++ b/DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManager= ObjectParser.c @@ -641,7 +641,7 @@ PrintCmObjDesc ( )); } DEBUG ((DEBUG_ERROR, "\n")); - Data +=3D Parser[Index].Length; + Data =3D (UINT8*)Data + Parser[Index].Length; } // for } =20 --=20 2.17.1