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

Issue 328001: Correcting compilation warnings. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by qsr
Modified:
13 years ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

 Correct compilation warning.

 1) Modify src/common/mac/macho_walker.cc to remove a signed  vs unsigned
comparison.

 2) Replace mktemp in test using AutoTmpDir that has been moved from
client/mac/tests to common/tests.

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 13

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/linux/handler/exception_handler_unittest.cc View 1 2 19 chunks +29 lines, -27 lines 0 comments Download
M src/client/linux/minidump_writer/minidump_writer_unittest.cc View 1 2 13 chunks +32 lines, -40 lines 0 comments Download
D src/client/mac/tests/auto_tempdir.h View 1 chunk +0 lines, -72 lines 0 comments Download
M src/client/mac/tests/crash_generation_server_test.cc View 2 6 chunks +26 lines, -26 lines 0 comments Download
M src/client/mac/tests/exception_handler_test.cc View 2 10 chunks +15 lines, -13 lines 0 comments Download
M src/client/mac/tests/minidump_generator_test.cc View 2 4 chunks +7 lines, -7 lines 0 comments Download
M src/common/linux/file_id_unittest.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M src/common/mac/macho_walker.cc View 1 chunk +3 lines, -1 line 0 comments Download
A src/common/tests/auto_tempdir.h View 2 3 4 1 chunk +98 lines, -0 lines 0 comments Download

Messages

Total messages: 9
qsr
This remove the use of mktemp from unit test because the function is considered unsafe. ...
13 years ago #1
Ted Mielczarek
I think we discussed this before. It would be nice to get rid of the ...
13 years ago #2
Mark Mentovai
No way. The warning’s there for a reason. Don’t defeat it without overcoming the deficiency ...
13 years ago #3
qsr
Rework on the CL to use AutoTempDir everywhere we were using mktemp.
13 years ago #4
Mark Mentovai
http://breakpad.appspot.com/328001/diff/1004/5009 File src/common/tests/auto_tempdir.h (right): http://breakpad.appspot.com/328001/diff/1004/5009#newcode53 Line 53: char tempDir[64] = TEMPDIR "/XXXXXXXXXX"; Should be temp_dir. ...
13 years ago #5
qsr
http://breakpad.appspot.com/328001/diff/1004/5009 File src/common/tests/auto_tempdir.h (right): http://breakpad.appspot.com/328001/diff/1004/5009#newcode53 Line 53: char tempDir[64] = TEMPDIR "/XXXXXXXXXX"; On 2011/11/22 17:52:52, ...
13 years ago #6
Mark Mentovai
http://breakpad.appspot.com/328001/diff/8001/9009 File src/common/tests/auto_tempdir.h (right): http://breakpad.appspot.com/328001/diff/8001/9009#newcode53 Line 53: char temp_dir[64] = TEMPDIR "/breakpad.XXXXXXXXXX"; Why do you ...
13 years ago #7
qsr
http://breakpad.appspot.com/328001/diff/8001/9009 File src/common/tests/auto_tempdir.h (right): http://breakpad.appspot.com/328001/diff/8001/9009#newcode53 Line 53: char temp_dir[64] = TEMPDIR "/breakpad.XXXXXXXXXX"; On 2011/11/23 14:07:44, ...
13 years ago #8
Mark Mentovai
13 years ago #9
LGTM otherwise

http://breakpad.appspot.com/328001/diff/8002/13009
File src/common/tests/auto_tempdir.h (right):

http://breakpad.appspot.com/328001/diff/8002/13009#newcode67
Line 67: std::string path_;
Normally the data members follow functions.

http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Declar...
Sign in to reply to this message.

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