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

Issue 1209413007: Suppress warnings for assignment inside conditionals. (Closed)

Created:
5 years, 5 months ago by dcheng
Modified:
5 years, 5 months ago
Reviewers:
Nico
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/deps/icu.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Suppress warnings for assignment inside conditionals. Some Windows-specific ICU code uses this pattern, which triggers a clang warning. BUG=505302 R=thakis@chromium.org Committed: https://chromium.googlesource.com/chromium/deps/icu/+/1b697da5c2c0112e2b70e7e75d3e3d985f464a8f

Patch Set 1 #

Patch Set 2 : GN too #

Total comments: 2

Patch Set 3 : Address comments #

Total comments: 1

Patch Set 4 : Address more feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M BUILD.gn View 1 2 3 3 chunks +3 lines, -2 lines 2 comments Download
M icu.gyp View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
dcheng
The alternative is to try to patch this upstream (http://source.icu-project.org/repos/icu/icu/trunk/source/common/putil.cpp, search for p = uprv).
5 years, 5 months ago (2015-06-30 04:04:06 UTC) #2
Nico
I think disabling this is fine, but there should be a short comment explaining why, ...
5 years, 5 months ago (2015-06-30 04:45:56 UTC) #3
Nico
*comment
5 years, 5 months ago (2015-06-30 04:46:02 UTC) #4
dcheng
PTAL. I fixed an oversight in the previous patch (there are two distinct warning flag ...
5 years, 5 months ago (2015-06-30 17:42:16 UTC) #5
Nico
lgtm, but lebtm with the .gyp comment below https://codereview.chromium.org/1209413007/diff/40001/icu.gyp File icu.gyp (right): https://codereview.chromium.org/1209413007/diff/40001/icu.gyp#newcode295 icu.gyp:295: '-Wno-parentheses', ...
5 years, 5 months ago (2015-06-30 18:12:10 UTC) #6
dcheng
Mind taking one more look? I'm not as familiar with the GN-side of things, and ...
5 years, 5 months ago (2015-06-30 21:18:09 UTC) #7
Nico
lgtm! https://codereview.chromium.org/1209413007/diff/60001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1209413007/diff/60001/BUILD.gn#newcode495 BUILD.gn:495: configs += [ ":icu_code" ] On 2015/06/30 21:18:09, ...
5 years, 5 months ago (2015-06-30 21:32:58 UTC) #8
dcheng
5 years, 5 months ago (2015-06-30 22:06:05 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
1b697da5c2c0112e2b70e7e75d3e3d985f464a8f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698