From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.15226.1683340675294645834 for ; Fri, 05 May 2023 19:37:55 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Ps8oAwAJ; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: michael.d.kinney@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683340675; x=1714876675; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xGB3H29cZiiIANSeQ56OPjp7phmj11rbjhWv8Ob1d44=; b=Ps8oAwAJgbzqHAmVj9xNQ1DE29S2XrnVqJY/VW4NL5q4orkb56LLw4Ci 5Qr3x8BVHB/pak7SIrLMB6lglLayKH4+jGD9y9hQL0gETP3UU9AK4RKTV BjQBCAX9mN0fSrrsqjlrMxZ3RdQMmeWPHC5V4yKIgsJypIKz28BI6Bnjl QS35EpHAaayvLKFP3iaDBXjpOFJldKsQYsXsdiJLvbKsL8bnfkJDk8Zlu wuOZm82OsSYy3N+LmCluA0lGI9arJs0GSam2RCfPsGeuYv1/u8PMh020q Ch4eMAHdWwvtQrZMZMDe7z70xxhgHDCGgIAEc8CJcm9u8ctmH4rjqrKj5 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10701"; a="329688814" X-IronPort-AV: E=Sophos;i="5.99,253,1677571200"; d="scan'208";a="329688814" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2023 19:37:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10701"; a="842012884" X-IronPort-AV: E=Sophos;i="5.99,253,1677571200"; d="scan'208";a="842012884" Received: from jrosario-mobl1.amr.corp.intel.com (HELO mdkinney-mobl.amr.corp.intel.com) ([10.209.47.142]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2023 19:37:54 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Rebecca Cran , Liming Gao , Bob Feng , Yuwei Chen Subject: [Patch 1/1] BaseTools/Conf: Align CLANGDWARF and CLANGPDB warning overrides Date: Fri, 5 May 2023 19:37:42 -0700 Message-Id: <20230506023742.1213-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.40.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4447 Fix build error related to use of DEBUG_CODE_BEGIN() and DEBUG_CODE_END(). CLANGPDB requires extra warning disables for use of DebugLib.h macros. This change aligns the warning disables between CLANGDWARF and CLANGPDB. Cc: Rebecca Cran Cc: Liming Gao Cc: Bob Feng Cc: Yuwei Chen Signed-off-by: Michael D Kinney --- 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.template index 1b3a9e7a540a..0e49d8c3b999 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -1753,7 +1753,7 @@ DEFINE CLANGPDB_X64_PREFIX = ENV(CLANG_BIN) DEFINE CLANGPDB_IA32_TARGET = -target i686-unknown-windows-gnu DEFINE CLANGPDB_X64_TARGET = -target x86_64-unknown-windows-gnu -DEFINE CLANGPDB_WARNING_OVERRIDES = -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option -Wno-microsoft-enum-forward-reference +DEFINE CLANGPDB_WARNING_OVERRIDES = -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-unaligned-access -Wno-microsoft-enum-forward-reference DEFINE CLANGPDB_ALL_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) DEF(CLANGPDB_WARNING_OVERRIDES) -fno-stack-protector -funsigned-char -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -Wno-address -Wno-shift-negative-value -Wno-unknown-pragmas -Wno-incompatible-library-redeclaration -Wno-null-dereference -mno-implicit-float -mms-bitfields -mno-stack-arg-probe -nostdlib -nostdlibinc -fseh-exceptions ########################### -- 2.40.1.windows.1