From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from loongson.cn (loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web12.7691.1666257543745912285 for ; Thu, 20 Oct 2022 02:19:04 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: loongson.cn, ip: 114.242.206.163, mailfrom: lichao@loongson.cn) Received: from loongson.cn (unknown [10.2.9.245]) by gateway (Coremail) with SMTP id _____8Cx7NiEElFjPAABAA--.5180S3; Thu, 20 Oct 2022 17:19:00 +0800 (CST) Received: from code-server.gen (unknown [10.2.9.245]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Axf+CEElFjMtcBAA--.7734S2; Thu, 20 Oct 2022 17:19:00 +0800 (CST) From: "Chao Li" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen Subject: [PATCH] BaseTools: Fixed the multiple pairs brackets issue in GenFv Date: Thu, 20 Oct 2022 17:18:57 +0800 Message-Id: <20221020091857.3764381-1-lichao@loongson.cn> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Axf+CEElFjMtcBAA--.7734S2 X-CM-SenderInfo: xolfxt3r6o00pqjv00gofq/1tbiAQAFCGNP6OEYAgAAsz X-Coremail-Antispam: 1Uk129KBjvJXoW7Cw4DZry3Zry7uw1xur45ZFb_yoW8XF1DpF 1I9F4kKry0gr1fC3ZYy34q9FyUAFs3uFy8Gw4vkw4jvwn3Cw17W34rKr4agFWUXa1qyw1S vrn5CasFvF1vyrJanT9S1TB71UUUUjUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU bcxFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wA2ocxC64kIII0Yj41l84x0c7CEw4 AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF 7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7 CjxVAFwI0_Cr1j6rxdM2kKe7AKxVWUXVWUAwAS0I0E0xvYzxvE52x082IY62kv0487Mc80 4VCY07AIYIkI8VC2zVCFFI0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VCjz48v1sIEY2 0_WwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc7CjxVAaw2AFwI0_JF0_ Jw1l42xK82IYc2Ij64vIr41l42xK82IY6x8ErcxFaVAv8VWrMxC20s026xCaFVCjc4AY6r 1j6r4UMxCIbckI1I0E14v26r1Y6r17MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xv wVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWUtwCIc40Y0x0EwIxGrwCI42IY6xIIjx v20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20E Y4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267 AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7xRR5l1PUUUUU== Content-Transfer-Encoding: quoted-printable If operation Werro is turned on when compiling BaseTools, the multi-brackets warning will be reported. This issue is comes from on of the LoongArch enabled patche. Removed extra pairs brackets to fix it. Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Chao Li --- BaseTools/Source/C/GenFv/GenFvInternalLib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BaseTools/Source/C/GenFv/GenFvInternalLib.c b/BaseTools/Source= /C/GenFv/GenFvInternalLib.c index 5c3d54f5f7..b5b9425003 100644 --- a/BaseTools/Source/C/GenFv/GenFvInternalLib.c +++ b/BaseTools/Source/C/GenFv/GenFvInternalLib.c @@ -3559,7 +3559,7 @@ Returns: }=0D =0D // Machine type is LOONGARCH64, set a flag so LoongArch64 reset vect= or processed.=0D - if ((MachineType =3D=3D EFI_IMAGE_MACHINE_LOONGARCH64)) {=0D + if (MachineType =3D=3D EFI_IMAGE_MACHINE_LOONGARCH64) {=0D VerboseMsg("Located LoongArch64 SEC core in child FV");=0D mLoongArch =3D TRUE;=0D }=0D @@ -3721,7 +3721,7 @@ Returns: mRiscV =3D TRUE;=0D }=0D =0D - if ( (ImageContext.Machine =3D=3D EFI_IMAGE_MACHINE_LOONGARCH64) ) {=0D + if (ImageContext.Machine =3D=3D EFI_IMAGE_MACHINE_LOONGARCH64) {=0D mLoongArch =3D TRUE;=0D }=0D =0D @@ -4002,7 +4002,7 @@ Returns: mArm =3D TRUE;=0D }=0D =0D - if ( (ImageContext.Machine =3D=3D EFI_IMAGE_MACHINE_LOONGARCH64) ) {=0D + if (ImageContext.Machine =3D=3D EFI_IMAGE_MACHINE_LOONGARCH64) {=0D mLoongArch =3D TRUE;=0D }=0D =0D --=20 2.27.0