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

Unified Diff: nss.gyp

Issue 419963005: Update clang warnings after r287092. (Closed) Base URL: http://src.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 6 years, 5 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: nss.gyp
===================================================================
--- nss.gyp (revision 277057)
+++ nss.gyp (working copy)
@@ -242,6 +242,14 @@
},
# TODO(wtc): suppress C4244 and C4554 in prdtoa.c.
'msvs_disabled_warnings': [4018, 4244, 4554, 4267,],
+ 'variables': {
+ 'clang_warning_flags': [
+ # nspr passes "const char*" through "void*".
+ '-Wno-incompatible-pointer-types',
+ # nspr passes "int*" through "unsigned int*".
+ '-Wno-pointer-sign',
wtc 2014/08/04 22:51:48 I'd be interested in fixing these warnings. I'll t
+ ],
+ },
'conditions': [
['OS=="mac" or OS=="ios"', {
'defines': [
@@ -326,16 +334,8 @@
# nspr uses a bunch of deprecated functions (NSLinkModule etc) in
# prlink.c on mac.
'-Wno-deprecated-declarations',
- # nspr passes "const char*" through "void*".
- '-Wno-incompatible-pointer-types',
- # nspr passes "int*" through "unsigned int*".
- '-Wno-pointer-sign',
],
},
- 'cflags': [
- '-Wno-incompatible-pointer-types',
- '-Wno-pointer-sign',
- ],
}],
],
},
@@ -1056,6 +1056,20 @@
],
},
'msvs_disabled_warnings': [4018, 4101, 4267, ],
+ 'variables': {
+ 'clang_warning_flags': [
+ # nss doesn't explicitly cast between different enum types.
+ '-Wno-conversion',
+ # nss passes "const char*" through "void*".
+ '-Wno-incompatible-pointer-types',
+ # nss prefers `a && b || c` over `(a && b) || c`.
+ '-Wno-logical-op-parentheses',
+ # nss doesn't use exhaustive switches on enums
+ '-Wno-switch',
+ # nss has some `unsigned < 0` checks.
+ '-Wno-tautological-compare',
wtc 2014/08/04 22:51:48 Most of these should be fixed. I'll try to take a
+ ],
+ },
'conditions': [
['exclude_nss_root_certs==1', {
'defines': [
@@ -1212,29 +1226,6 @@
'nss/lib/freebl/mpi/mpi_x86_asm.c',
],
}],
- ['clang==1', {
- 'xcode_settings': {
- 'WARNING_CFLAGS': [
- # nss doesn't explicitly cast between different enum types.
- '-Wno-conversion',
- # nss passes "const char*" through "void*".
- '-Wno-incompatible-pointer-types',
- # nss prefers `a && b || c` over `(a && b) || c`.
- '-Wno-logical-op-parentheses',
- # nss doesn't use exhaustive switches on enums
- '-Wno-switch',
- # nss has some `unsigned < 0` checks.
- '-Wno-tautological-compare',
- ],
- },
- 'cflags': [
- '-Wno-conversion',
- '-Wno-incompatible-pointer-types',
- '-Wno-logical-op-parentheses',
- '-Wno-switch',
- '-Wno-tautological-compare',
- ],
- }],
],
},
],
« 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