Closed Bug 984080 Opened 12 years ago Closed 12 years ago

Suppress clang and gcc warnings in third-party code: google/crashreporter, ipc/chromium

Categories

(Core :: IPC, defect, P4)

defect

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: cpeterson, Assigned: cpeterson)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

ipc/chromium/src/base/logging.cc:15:20 [-Wunused-but-set-variable] variable 'prlevel' set but not used ipc/chromium/src/base/string_util.cc:307:13 [-Wunused-function] 'bool TrimString(const wstring&, wchar_t const*, std::wstring*)' defined but not used ipc/chromium/src/base/string_util.cc:313:13 [-Wunused-function] 'bool TrimString(const string&, char const*, std::string*)' defined but not used ipc/chromium/src/base/string_util.cc:513:27 [-Wtype-limits] comparison of unsigned expression < 0 is always false ipc/chromium/src/third_party/libevent/evutil_rand.c:62:2 [-Wimplicit-function-declaration] implicit declaration of function 'arc4random_buf' toolkit/crashreporter/google-breakpad/src/common/dwarf_cu_to_module.h:224:10 [-Wredeclared-class-member] class member cannot be redeclared toolkit/crashreporter/google-breakpad/src/common/md5.cc:169:3 [-Wdeprecated-register] 'register' storage class specifier is deprecated toolkit/crashreporter/google-breakpad/src/processor/tokenize.cc:65:7 [-Wlogical-not-parentheses] logical not is only applied to the left hand side of this comparison
Attachment #8391830 - Flags: review?(benjamin)
Attachment #8391830 - Attachment is patch: true
Attachment #8391830 - Attachment mime type: text/x-patch → text/plain
Comment on attachment 8391830 [details] [diff] [review] suppress-google-warnings.patch Ted I know I saw some breakpad warnings fixes go in recently: do we still need this or can we just uplift a new breakpad? for ipc/chromium do we know what it would take to fix the warnings? We forked that code, so we don't need to worry about conflicts with upstream or anything like that.
Attachment #8391830 - Flags: review?(benjamin) → review?(ted)
(In reply to Benjamin Smedberg [:bsmedberg] from comment #1) > Ted I know I saw some breakpad warnings fixes go in recently: do we still > need this or can we just uplift a new breakpad? I just reviewed the upstream google-breakpad repo. It looks like all three of the warnings I was suppressing have been fixed upstream. So I will just retract my patch. (In reply to Benjamin Smedberg [:bsmedberg] from comment #1) > for ipc/chromium do we know what it would take to fix the warnings? We > forked that code, so we don't need to worry about conflicts with upstream or > anything like that. The fixes for ipc/chromium warnings would be trivial. If we don't care about upstream conflicts, I'll post a patch to actually fix the ipc/chromium warnings.
Comment on attachment 8391830 [details] [diff] [review] suppress-google-warnings.patch This patch is no longer relevant because the breakpad warnings have been fixed upstream and the ipc/chromium warnings can be fixed in our tree.
Attachment #8391830 - Flags: review?(ted)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
* This patch fixes the following clang and gcc warnings in ipc/chromium (so this code has zero warnings with clang on OS X): ipc/chromium/src/base/shared_memory_posix.cc:23:12 [-Wunused-const-variable] unused variable 'kSemaphoreSuffix' ipc/chromium/src/base/string_util.cc:307:13 [-Wunused-function] unused function 'TrimString' ipc/chromium/src/base/string_util.cc:313:13 [-Wunused-function] unused function 'TrimString' ipc/chromium/src/base/string_util.cc:513:27 [-Wtype-limits] comparison of unsigned expression < 0 is always false ipc/chromium/src/base/sys_string_conversions_mac.mm:120:31 [-Wunused-const-variable] unused variable 'kMediumStringEncoding' * But it does NOT fix the following gcc warnings on Android (because the fixes would be a little more involved and my primary goal is to fix clang warnings on OS X): ipc/chromium/src/base/logging.cc:15:20 [-Wunused-but-set-variable] variable 'prlevel' set but not used ipc/chromium/src/third_party/libevent/evutil_rand.c:62:2 [-Wimplicit-function-declaration] implicit declaration of function 'arc4random_buf' The -Wtype-limits fix (using template struct TestNegT) was backported from Chromium upstream: https://chromium.googlesource.com/chromium/chromium/+blame/master/base/string_number_conversions.cc
Attachment #8392691 - Flags: review?(benjamin)
Status: RESOLVED → REOPENED
Component: General → IPC
Resolution: WONTFIX → ---
Attachment #8392691 - Flags: review?(benjamin) → review+
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: