From nobody Mon Feb 9 01:20:43 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+80030+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+80030+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1630446585; cv=none; d=zohomail.com; s=zohoarc; b=BondrceoNHnr9RtbOwXUFa8wZvDsGcrXapG/hTjJtfi3DBC0wglgD5y1ddzsZeHe9thXrRwPDafWfOUT2Em/y3oMilQ1f+Iqa9hozoc8T/tDmErVFqGxTTpc0I7ffq4hjKv9fzSw1oRs6efpqYS++LWQ/RX0ZLTpuKDW+XZljOA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630446585; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=K+4h9+Dib74jFur+7/eXj2G7mn5y1gU3he6eNBiR7HY=; b=TwXX5evcO12Ssdh4ocnmcm+99Athvq3c4y2WBy3SNWH70rDIV/C0SCEK/pjM/TRZIEGzh9heKOScPzV8NbpHuZ3T8GcpWgG7WYhIJpgq33euyP1dPppxnPsSAbw6LZNW5M/g2WKWA+Z/XQukS3n90eOD8RpucaT2qEx2JXpNnPI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+80030+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1630446585465114.36387745379591; Tue, 31 Aug 2021 14:49:45 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 4Nt1YY1788612xlZKWdd9IAR; Tue, 31 Aug 2021 14:49:45 -0700 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.153.1630446583496633509 for ; Tue, 31 Aug 2021 14:49:44 -0700 X-IronPort-AV: E=McAfee;i="6200,9189,10093"; a="304148908" X-IronPort-AV: E=Sophos;i="5.84,367,1620716400"; d="scan'208";a="304148908" X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 14:49:43 -0700 X-IronPort-AV: E=Sophos;i="5.84,367,1620716400"; d="scan'208";a="541198545" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.251.12.118]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2021 14:49:42 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Rebecca Cran , Sivaraman Subject: [edk2-devel] [edk2-libc Patch 1/2] AppPkg/Applications/Enquire: Resolve CLANGPDB build issues Date: Tue, 31 Aug 2021 14:49:30 -0700 Message-Id: <20210831214931.1562-2-michael.d.kinney@intel.com> In-Reply-To: <20210831214931.1562-1-michael.d.kinney@intel.com> References: <20210831214931.1562-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,michael.d.kinney@intel.com X-Gm-Message-State: IIyvb7gmiogdU7635oht3DiMx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1630446585; bh=nq8amTe+IlMWbNVM0KwGwmaxRc3yZk0PyE5biEyTPBA=; h=Cc:Date:From:Reply-To:Subject:To; b=SS4KgklINQVLosyYsxTPHoplGsE9KKeuce40YxU2m6lJc0oC8nYgs+vAUkGYGO0EURL kMxjrx7r5vXqAb1AdX2CVJb0TXPpMitpvzcbWfyfX2cQhhxepPIpMJ3EcLXc0jNu2tGv2 nh0T1KKrFgiTkIP7PuPBwlo3mh3LLaFVYi8= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1630446587399100006 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1618 Disable warnings for unused variables This application has a #include statement to include itself based on the built-in macro __FILE__. However, this macro is the full path to the file and the format of this file path generates errors from CLANGPDB. CLANGPDB provides a differnt build-in macro called __FILE_NAME__ that is a relative path instead of a full path and using this instead of __FILE__ resolves the issue. Define __FILE__ to be __FILE_NAME__ and disable the warning for redefining a build0in macro. Cc: Rebecca Cran Cc: Sivaraman Signed-off-by: Michael D Kinney --- AppPkg/Applications/Enquire/Enquire.inf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AppPkg/Applications/Enquire/Enquire.inf b/AppPkg/Applications/= Enquire/Enquire.inf index 090eec1..7322611 100644 --- a/AppPkg/Applications/Enquire/Enquire.inf +++ b/AppPkg/Applications/Enquire/Enquire.inf @@ -48,6 +48,7 @@ LibWchar =20 [BuildOptions] - INTEL:*_*_*_CC_FLAGS =3D /Qdiag-disable:181,186 - MSFT:*_*_*_CC_FLAGS =3D /Od - GCC:*_*_*_CC_FLAGS =3D -O0 -Wno-unused-variable + INTEL:*_*_*_CC_FLAGS =3D /Qdiag-disable:181,186 + MSFT:*_*_*_CC_FLAGS =3D /Od + GCC:*_*_*_CC_FLAGS =3D -O0 -Wno-unused-variable + CLANGPDB:*_*_*_CC_FLAGS =3D -Wno-unused-variable -Wno-builtin-macro-rede= fined -D__FILE__=3D__FILE_NAME__ --=20 2.32.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#80030): https://edk2.groups.io/g/devel/message/80030 Mute This Topic: https://groups.io/mt/85287996/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-