Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(143)

Issue 377001: Fix compilation warnings related to unchecked return values (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by chrisdearman
Modified:
12 years, 6 months ago
CC:
google-breakpad-dev_googlegroups.com
Visibility:
Public.

Description

Check return results from read/write

Also added EINTR handling and cleaned up use of
ASSERT_EQ(expected, actual) macro

Signed-off-by: Chris Dearman <chris@mips.com>

Patch Set 1 #

Total comments: 3

Patch Set 2 : Check return results from read/write #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/linux/handler/exception_handler_unittest.cc View 1 1 chunk +8 lines, -1 line 0 comments Download
M src/client/linux/minidump_writer/line_reader_unittest.cc View 1 7 chunks +33 lines, -26 lines 0 comments Download
M src/client/linux/minidump_writer/minidump_writer_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 5
Ted Mielczarek
Not sure if mail got sent here.
12 years, 7 months ago #1
Ben Chan
http://breakpad.appspot.com/377001/diff/1/src/client/linux/minidump_writer/line_reader_unittest.cc File src/client/linux/minidump_writer/line_reader_unittest.cc (right): http://breakpad.appspot.com/377001/diff/1/src/client/linux/minidump_writer/line_reader_unittest.cc#newcode73 src/client/linux/minidump_writer/line_reader_unittest.cc:73: ASSERT_EQ(write(fd, "a\n", 2), 2); 1. ASSERT_EQ(expected, actual); 2. HANDLE_EINTR(write(...)) ...
12 years, 7 months ago #2
chrisdearman
Ben, Thanks for the comments. I've uploaded a new version of the patch that fixes ...
12 years, 7 months ago #3
Ben Chan
On 2012/04/16 22:17:28, chrisdearman wrote: > Ben, > Thanks for the comments. I've uploaded a ...
12 years, 7 months ago #4
Ben Chan
12 years, 7 months ago #5
Chris, looks like this patch has been committed @r957.  Could you close this
issue? Thanks.

On 2012/04/17 16:09:05, Ben Chan wrote:
> On 2012/04/16 22:17:28, chrisdearman wrote:
> > Ben,
> > Thanks for the comments. I've uploaded a new version of the patch that fixes
> the
> > issues you pointed out. I also fixed the other uses of ASSERT_EQ that were
> > reversed.
> 
> lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted