From: Liming Gao <liming.gao@intel.com>
To: edk2-devel@lists.01.org
Subject: [Patch] MdeModulePkg RegularExpressionDxe: Disable XCODE unknown warning option
Date: Mon, 8 Oct 2018 12:22:21 +0800 [thread overview]
Message-ID: <1538972541-9368-1-git-send-email-liming.gao@intel.com> (raw)
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 <liming.gao@intel.com>
---
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
reply other threads:[~2018-10-08 4:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1538972541-9368-1-git-send-email-liming.gao@intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox