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

Issue 453002: Turn on more warnings in ios / mac projects. (Closed)

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

Description

Turn on more warnings in ios / mac projects.
Make casts explicit.
  This makes casts that loose precision explicit, from here on we will get
warnings.
  The changes in this commit are made without evaluating each cast, asuming the
original
  casts were intentional.
Fixes local variable shadows.

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/ios/Breakpad.xcodeproj/project.pbxproj View 2 chunks +16 lines, -0 lines 0 comments Download
M src/client/ios/BreakpadController.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M src/client/mac/handler/breakpad_nlist_64.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/client/mac/handler/dynamic_images.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M src/client/mac/handler/minidump_generator.cc View 1 2 5 7 chunks +19 lines, -12 lines 0 comments Download
M src/client/minidump_file_writer_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/common/mac/file_id.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/common/mac/macho_walker.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/common/string_conversion.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/tools/linux/symupload/sym_upload.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16
qsr
https://breakpad.appspot.com/453002/diff/1/src/client/ios/BreakpadController.mm File src/client/ios/BreakpadController.mm (right): https://breakpad.appspot.com/453002/diff/1/src/client/ios/BreakpadController.mm#newcode227 src/client/ios/BreakpadController.mm:227: return uploadIntervalInSeconds_ - (int)(spanSeconds + 0.5); no C style ...
12 years, 2 months ago #1
jakerr
https://breakpad.appspot.com/453002/diff/1/src/client/mac/handler/minidump_generator.cc File src/client/mac/handler/minidump_generator.cc (right): https://breakpad.appspot.com/453002/diff/1/src/client/mac/handler/minidump_generator.cc#newcode432 src/client/mac/handler/minidump_generator.cc:432: assert(0 && "Unknown CPU type!"); On 2012/09/11 07:14:13, qsr ...
12 years, 2 months ago #2
jakerr
This change is ready for another look. Made casts c++ style and fixed lines that ...
12 years, 2 months ago #3
qsr
Mark, can you look at the issue in dynamic_image.cc? https://breakpad.appspot.com/453002/diff/11/src/client/mac/handler/breakpad_nlist_64.cc File src/client/mac/handler/breakpad_nlist_64.cc (right): https://breakpad.appspot.com/453002/diff/11/src/client/mac/handler/breakpad_nlist_64.cc#newcode364 src/client/mac/handler/breakpad_nlist_64.cc:364: ...
12 years, 2 months ago #4
Mark Mentovai
https://breakpad.appspot.com/453002/diff/11/src/client/mac/handler/dynamic_images.cc File src/client/mac/handler/dynamic_images.cc (right): https://breakpad.appspot.com/453002/diff/11/src/client/mac/handler/dynamic_images.cc#newcode262 src/client/mac/handler/dynamic_images.cc:262: image.vmaddr_ = static_cast<vm_address_t>(seg->vmaddr); None of this stuff currently works ...
12 years, 2 months ago #5
Mark Mentovai
https://breakpad.appspot.com/453002/diff/11/src/client/ios/Breakpad.xcodeproj/project.pbxproj File src/client/ios/Breakpad.xcodeproj/project.pbxproj (right): https://breakpad.appspot.com/453002/diff/11/src/client/ios/Breakpad.xcodeproj/project.pbxproj#newcode495 src/client/ios/Breakpad.xcodeproj/project.pbxproj:495: CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; Which of these was triggering the ...
12 years, 2 months ago #6
jakerr
Please take another look. https://breakpad.appspot.com/453002/diff/11/src/client/ios/Breakpad.xcodeproj/project.pbxproj File src/client/ios/Breakpad.xcodeproj/project.pbxproj (right): https://breakpad.appspot.com/453002/diff/11/src/client/ios/Breakpad.xcodeproj/project.pbxproj#newcode495 src/client/ios/Breakpad.xcodeproj/project.pbxproj:495: CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; On 2012/09/14 ...
12 years, 2 months ago #7
qsr
https://breakpad.appspot.com/453002/diff/11001/src/client/mac/handler/dynamic_images.cc File src/client/mac/handler/dynamic_images.cc (right): https://breakpad.appspot.com/453002/diff/11001/src/client/mac/handler/dynamic_images.cc#newcode1 src/client/mac/handler/dynamic_images.cc:1: // ? Why do you remove copyright notice?
12 years, 2 months ago #8
jakerr
On 2012/09/18 07:55:53, qsr wrote: > https://breakpad.appspot.com/453002/diff/11001/src/client/mac/handler/dynamic_images.cc > File src/client/mac/handler/dynamic_images.cc (right): > > https://breakpad.appspot.com/453002/diff/11001/src/client/mac/handler/dynamic_images.cc#newcode1 > ...
12 years, 2 months ago #9
jakerr
On 2012/09/18 08:00:01, jakerr wrote: > On 2012/09/18 07:55:53, qsr wrote: > > > https://breakpad.appspot.com/453002/diff/11001/src/client/mac/handler/dynamic_images.cc ...
12 years, 2 months ago #10
qsr
https://breakpad.appspot.com/453002/diff/15002/src/client/mac/handler/minidump_generator.cc File src/client/mac/handler/minidump_generator.cc (right): https://breakpad.appspot.com/453002/diff/15002/src/client/mac/handler/minidump_generator.cc#newcode432 src/client/mac/handler/minidump_generator.cc:432: assert(0 && "Unknown CPU type!"); I still don't understand ...
12 years, 2 months ago #11
jakerr
On 2012/09/19 11:15:02, qsr wrote: > https://breakpad.appspot.com/453002/diff/15002/src/client/mac/handler/minidump_generator.cc > File src/client/mac/handler/minidump_generator.cc (right): > > https://breakpad.appspot.com/453002/diff/15002/src/client/mac/handler/minidump_generator.cc#newcode432 > ...
12 years, 2 months ago #12
qsr
https://breakpad.appspot.com/453002/diff/22001/src/client/mac/handler/minidump_generator.cc File src/client/mac/handler/minidump_generator.cc (right): https://breakpad.appspot.com/453002/diff/22001/src/client/mac/handler/minidump_generator.cc#newcode432 src/client/mac/handler/minidump_generator.cc:432: assert(0 && "Unknown CPU type!"); Too much whitespace.
12 years, 2 months ago #13
jakerr
https://breakpad.appspot.com/453002/diff/22001/src/client/mac/handler/minidump_generator.cc File src/client/mac/handler/minidump_generator.cc (right): https://breakpad.appspot.com/453002/diff/22001/src/client/mac/handler/minidump_generator.cc#newcode432 src/client/mac/handler/minidump_generator.cc:432: assert(0 && "Unknown CPU type!"); On 2012/09/20 07:48:10, qsr ...
12 years, 2 months ago #14
qsr
LGTM
12 years, 2 months ago #15
qsr
12 years, 2 months ago #16
Pushed as revision 1046.

Could you close this review, I cannot do it.
Sign in to reply to this message.

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