Closed
Bug 1008286
Opened 11 years ago
Closed 11 years ago
clang warning (treated as error) in disable-unified build: nsProtocolProxyService.cpp:666:12: error: unused variable 'kProxyType_UNKNOWN' [-Werror,-Wunused-const-variable]
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.10 KB,
patch
|
jduell.mcbugs
:
review+
|
Details | Diff | Splinter Review |
STR:
Build with this mozconfig, with clang (I'm using version 3.5):
ac_add_options --enable-debug --disable-optimize
ac_add_options --enable-warnings-as-errors
ac_add_options --disable-unified-compilation
ACTUAL RESULTS:
Build error:
netwerk/base/src/nsProtocolProxyService.cpp:666:12: error: unused variable 'kProxyType_UNKNOWN' [-Werror,-Wunused-const-variable]
This variable is indeed unused and should be removed.
(I think clang doesn't warn about it in unified builds because there, we're #including the .cpp file, and clang assumes that there could be other #includers that have usages.)
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8420227 -
Flags: review?(jduell.mcbugs)
Assignee | ||
Comment 2•11 years ago
|
||
MXR search proving that this variable is indeed unused:
http://mxr.mozilla.org/mozilla-central/search?string=kProxyType_UNKNOWN
Updated•11 years ago
|
Attachment #8420227 -
Flags: review?(jduell.mcbugs) → review+
Updated•11 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 3•11 years ago
|
||
Thanks for the review! I'll land this myself in a bit; no need for checkin-needed.
Keywords: checkin-needed
Assignee | ||
Comment 4•11 years ago
|
||
Flags: in-testsuite-
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•