Chromium Code Reviews

Issue 8333007: Fix a gcc 4.6 compiler warning. (Closed)

Created:
9 years, 2 months ago by tony
Modified:
9 years, 2 months ago
Reviewers:
jungshik at Google, M-A Ruel
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/deps/icu46.git@master
Visibility:
Public.

Description

Fix a gcc 4.6 compiler warning. ../../third_party/icu/public/common/unicode/unistr.h: In member function ‘icu_46::UnicodeString& icu_46::UnicodeString::replace(int32_t, int32_t, UChar32)’: ../../third_party/icu/public/common/unicode/unistr.h:4026:9: error: variable ‘isError’ set but not used [-Werror=unused-but-set-variable] ../../third_party/icu/public/common/unicode/unistr.h: In member function ‘icu_46::UnicodeString& icu_46::UnicodeString::append(UChar32)’: ../../third_party/icu/public/common/unicode/unistr.h:4329:9: error: variable ‘isError’ set but not used [-Werror=unused-but-set-variable] cc1plus: all warnings being treated as errors BUG=87490

Patch Set 1 #

Unified diffs Side-by-side diffs Stats (+30 lines, -4 lines)
M README.chromium View 1 chunk +4 lines, -0 lines 0 comments
A patches/gcc4.6.patch View 1 chunk +24 lines, -0 lines 0 comments
M public/common/unicode/unistr.h View 2 chunks +2 lines, -4 lines 0 comments

Messages

Total messages: 5 (0 generated)
tony
9 years, 2 months ago (2011-10-17 23:56:56 UTC) #1
tony
ping
9 years, 2 months ago (2011-10-19 16:59:36 UTC) #2
jungshik at Google
On 2011/10/19 16:59:36, tony wrote: > ping There's another patch that does not use U16_APPEND_UNSAFE ...
9 years, 2 months ago (2011-10-21 20:50:09 UTC) #3
tony
On 2011/10/21 20:50:09, Jungshik Shin wrote: > On 2011/10/19 16:59:36, tony wrote: > > ping ...
9 years, 2 months ago (2011-10-21 21:09:17 UTC) #4
jungshik at Google
9 years, 2 months ago (2011-10-21 21:31:39 UTC) #5
I like the other patch better :-) I don't think it's a good idea to use
U16_APPEND_UNSAFE for append. 

On 2011/10/21 21:09:17, tony wrote:
> On 2011/10/21 20:50:09, Jungshik Shin wrote:
> > On 2011/10/19 16:59:36, tony wrote:
> > > ping
> >
> > There's another patch that does not use U16_APPEND_UNSAFE (
> > http://codereview.chromium.org/812001) that I've just landed in the
> trunk.
> >
> > Sorry that I missed this CL. Anyway, I'll roll DEPS for icu.
> 
> I think you mean http://codereview.chromium.org/8120001/ , but the author
> said he preferred this patch (
> http://code.google.com/p/chromium/issues/detail?id=97482#c5 ).
> 
> If you want, I'll revert the other patch, land this one, and roll DEPS.
> 
> 
> >
>
http://codereview.chromium.**org/8333007/%3Chttp://codereview.chromium.org/83...>
> >

Powered by Google App Engine