From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by mx.groups.io with SMTP id smtpd.web10.16654.1672934717088853828 for ; Thu, 05 Jan 2023 08:05:17 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WR0axZTn; spf=pass (domain: kernel.org, ip: 145.40.68.75, mailfrom: ardb@kernel.org) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 94F99B81B40; Thu, 5 Jan 2023 16:05:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2675DC433F0; Thu, 5 Jan 2023 16:05:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672934714; bh=xFdT2vxEET/l9Y/yQceD15pGYZuXEtWhiKf3dvR1lg0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WR0axZTn7LpmViAetDQe3bZmdjC23e/CWkgysHlS5liZXcp4jE/EVBYxQnqMgAdqZ 22j8yyULK4HK4BU3kg8qbVWRLThOnGUjo/3QV/Le6kIE09eHsndoklVoOdw781WSQH 3xx2vuO9G9AJ+MF83ZM8ktgnPkkl3RNj5t2pF4Gin/yxOswDMIwwggv0+q7lO8YGkh dqJot4Luru7fLANqD+7k5B8wYf1GCTpeURJujKf3q+t6RYC1lQwSIOalmg83LzNrNX PEyy2fcXxg2D76MIcNEtz/bDovfbFM0h6hwNPjvRDcTvEZ+e87GD4FPzE1SOnAWmXL U2gOl8oBiak4Q== From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: quic_llindhol@quicinc.com, rebecca@quicinc.com, bob.c.feng@intel.com, gaoliming@byosoft.com.cn, Ard Biesheuvel Subject: [PATCH 4/4] BaseTools/tools_def CLANG38: Suppress unaligned access warning Date: Thu, 5 Jan 2023 17:05:03 +0100 Message-Id: <20230105160503.1423627-5-ardb@kernel.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230105160503.1423627-1-ardb@kernel.org> References: <20230105160503.1423627-1-ardb@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Even though the presence of the 'packed' pragma should be a strong hint that the misaligned placement of a GUID in a struct is intentional, recent Clang versions will object nonetheless, and break the build due to the presence of such GUIDs in the FPDT ACPI tables. This is obviously not something we can fix in the code, so let's just suppress the warning/error instead. Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/tools_def.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.t= emplate index 9bf771385e33..380d4587335a 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -2580,7 +2580,7 @@ DEFINE CLANG38_X64_PREFIX =3D ENV(CLANG38_B= IN) DEFINE CLANG38_IA32_TARGET =3D -target i686-pc-linux-gnu=0D DEFINE CLANG38_X64_TARGET =3D -target x86_64-pc-linux-gnu=0D =0D -DEFINE CLANG38_WARNING_OVERRIDES =3D -Wno-parentheses-equality -Wno-tau= tological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empt= y-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option = -Wno-unused-but-set-variable -Wno-unused-const-variable=0D +DEFINE CLANG38_WARNING_OVERRIDES =3D -Wno-parentheses-equality -Wno-tau= tological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empt= y-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option = -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-unaligned-acce= ss=0D DEFINE CLANG38_ALL_CC_FLAGS =3D DEF(GCC48_ALL_CC_FLAGS) DEF(CLANG3= 8_WARNING_OVERRIDES) -fno-stack-protector -mms-bitfields -Wno-address -Wno-= shift-negative-value -Wno-unknown-pragmas -Wno-incompatible-library-redecla= ration -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -msoft-float -mno-= implicit-float -ftrap-function=3Dundefined_behavior_has_been_optimized_awa= y_by_clang -funsigned-char -fno-ms-extensions -Wno-null-dereference=0D =0D ###########################=0D --=20 2.39.0