Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Unified Diff: openssl.gyp

Issue 9959115: OpenSSL: Disable specific warnings when using clang. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/openssl/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: openssl.gyp
===================================================================
--- openssl.gyp (revision 125658)
+++ openssl.gyp (working copy)
@@ -16,11 +16,6 @@
# We do not use TLS over UDP on Chromium so far.
'OPENSSL_NO_DTLS1',
],
- 'copts': [
- '-w',
- '-Wno-cast-qual',
- '-Wno-error',
- ],
'sources': [
'openssl/ssl/bio_ssl.c',
'openssl/ssl/d1_both.c',
@@ -659,6 +654,19 @@
['exclude', 'mdc2/.*$'],
],
}],
+ ['clang==1', {
+ 'cflags': [
+ # OpenSSL has a few |if ((foo == NULL))| checks.
+ '-Wno-parentheses-equality',
+ # OpenSSL uses several function-style macros and then ignores the
+ # returned value.
+ '-Wno-unused-value',
+ ],
+ }, { # Not clang. Disable all warnings.
+ 'cflags': [
+ '-w',
+ ],
+ }]
],
'include_dirs': [
'.',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698