From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.115; helo=mga14.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4A01F21161B05 for ; Sun, 7 Oct 2018 21:22:25 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Oct 2018 21:22:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,355,1534834800"; d="scan'208";a="76984969" Received: from shwde7172.ccr.corp.intel.com ([10.239.158.23]) by fmsmga008.fm.intel.com with ESMTP; 07 Oct 2018 21:22:25 -0700 From: Liming Gao To: edk2-devel@lists.01.org Date: Mon, 8 Oct 2018 12:22:21 +0800 Message-Id: <1538972541-9368-1-git-send-email-liming.gao@intel.com> X-Mailer: git-send-email 2.8.0.windows.1 Subject: [Patch] MdeModulePkg RegularExpressionDxe: Disable XCODE unknown warning option X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2018 04:22:26 -0000 The option -Wno-error=unused-but-set-variable is added to disable variable 'fp' set but not used in GCC. But, XCODE doesn't know this option. To make XCODE pass build, -Wno-error=unknown-warning-option is added. The warning unused-but-set-variable reports the code issue. It will report to Oniguruma project. After it is fixed, next version code can remove those options. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao --- MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf index 18e4d2f..b30d6cf 100644 --- a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf +++ b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf @@ -112,3 +112,6 @@ # Enable STDARG for variable arguments *_*_*_CC_FLAGS = -DHAVE_STDARG_H + + # Disable unknown warning option '-Werror=unused-but-set-variable' + XCODE:*_*_*_CC_FLAGS = -Wno-error=unknown-warning-option -- 2.10.0.windows.1