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

Issue 354001: Cast result of _dyld_image_count to prevent compilation warning. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by qsr
Modified:
12 years, 8 months ago
Reviewers:
Mark Mentovai
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

 Correct various compilation warnings.

 - Cast result of _dyld_image_count to prevent compilation warning: The 2 int
   in both side of the ? operator should have the same type.
 - Remove unused variable for return values.
 - Remove unused NSUserDefaults.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/ios/Breakpad.mm View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M src/client/mac/handler/exception_handler.cc View 1 2 3 4 3 chunks +11 lines, -10 lines 0 comments Download
M src/client/mac/handler/minidump_generator.cc View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 5
qsr
12 years, 9 months ago #1
qsr
PTAL as I correct other warnings.
12 years, 8 months ago #2
Mark Mentovai
https://breakpad.appspot.com/354001/diff/6001/src/client/mac/handler/minidump_generator.cc File src/client/mac/handler/minidump_generator.cc (right): https://breakpad.appspot.com/354001/diff/6001/src/client/mac/handler/minidump_generator.cc#newcode1322 src/client/mac/handler/minidump_generator.cc:1322: dynamic_images_->GetImageCount() : static_cast<int>(_dyld_image_count()); GetImageCount is internally just a cast ...
12 years, 8 months ago #3
qsr
https://breakpad.appspot.com/354001/diff/6001/src/client/mac/handler/minidump_generator.cc File src/client/mac/handler/minidump_generator.cc (right): https://breakpad.appspot.com/354001/diff/6001/src/client/mac/handler/minidump_generator.cc#newcode1322 src/client/mac/handler/minidump_generator.cc:1322: dynamic_images_->GetImageCount() : static_cast<int>(_dyld_image_count()); On 2012/03/01 19:53:52, Mark Mentovai wrote: ...
12 years, 8 months ago #4
Mark Mentovai
12 years, 8 months ago #5
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