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

Issue 27038: Fix more GCC 4.3 warnings. (Closed)

Created:
11 years, 10 months ago by Evan Martin
Modified:
9 years, 7 months ago
Reviewers:
agl
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix more GCC 4.3 warnings.

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M base/process_util_unittest.cc View 2 chunks +4 lines, -2 lines 2 comments Download
M webkit/tools/npapi_layout_test_plugin/PluginObject.cpp View 1 chunk +2 lines, -1 line 1 comment Download

Messages

Total messages: 4 (0 generated)
Evan Martin
11 years, 10 months ago (2009-02-22 00:25:35 UTC) #1
agl
LGTM http://codereview.chromium.org/27038/diff/1/2 File base/process_util_unittest.cc (right): http://codereview.chromium.org/27038/diff/1/2#newcode184 Line 184: int written = write(write_pipe, &num_open_files, sizeof(num_open_files)); ssize_t, ...
11 years, 10 months ago (2009-02-22 01:25:35 UTC) #2
Evan Martin
On 2009/02/22 01:25:35, agl wrote: > LGTM > > http://codereview.chromium.org/27038/diff/1/2 > File base/process_util_unittest.cc (right): > ...
11 years, 10 months ago (2009-02-23 04:08:33 UTC) #3
Evan Martin
11 years, 10 months ago (2009-02-23 04:27:41 UTC) #4
On 2009/02/23 04:08:33, Evan Martin wrote:
> On 2009/02/22 01:25:35, agl wrote:
> > LGTM
> > 
> > http://codereview.chromium.org/27038/diff/1/2
> > File base/process_util_unittest.cc (right):
> > 
> > http://codereview.chromium.org/27038/diff/1/2#newcode184
> > Line 184: int written = write(write_pipe, &num_open_files,
> > sizeof(num_open_files));
> > ssize_t, not int
> > 
> > http://codereview.chromium.org/27038/diff/1/2#newcode185
> > Line 185: DCHECK(written == sizeof(num_open_files));
> > DCHECK_EQ
> > 
> > http://codereview.chromium.org/27038/diff/1/3
> > File webkit/tools/npapi_layout_test_plugin/PluginObject.cpp (right):
> > 
> > http://codereview.chromium.org/27038/diff/1/3#newcode560
> > Line 560: int written = fwrite(contentsString.UTF8Characters,
> > contentsString.UTF8Length, 1, tempFile);
> > size_t, not int
> 
> You had comments on 3 of my 6 lines, but it turns out the 4th one could be
> improved as well (DCHECK_EQ).  Thanks for the review; you shoulda written it
> yourself!  :P

Windows doesn't have ssize_t.  Their fwrite is size_t and returns zero on error.
 :(

Powered by Google App Engine
This is Rietveld 408576698