Closed
Bug 665532
Opened 14 years ago
Closed 14 years ago
Fix unused variable warnings in nsWifiMonitor.cpp
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: emorley, Assigned: emorley)
References
(Blocks 1 open bug)
Details
(Whiteboard: [build_warning])
Attachments
(1 file, 2 obsolete files)
|
1.67 KB,
patch
|
Details | Diff | Splinter Review |
netwerk/wifi/nsWifiScannerMac.cpp:119: warning: unused variable 'rv'
netwerk/wifi/nsWifiScannerMac.cpp:255: warning: unused variable 'rv'
netwerk/wifi/nsWifiScannerUnix.cpp:213:20: warning: unused variable 'rv'
eg:
213 nsresult rv = proxy->OnChange(result, resultCount);
214 LOG( ("... sent %d\n", rv));
http://mxr.mozilla.org/mozilla-central/source/netwerk/wifi/nsWifiScannerUnix.cpp#213
http://mxr.mozilla.org/mozilla-central/source/netwerk/wifi/nsWifiScannerWin.cpp#194
http://mxr.mozilla.org/mozilla-central/source/netwerk/wifi/nsWifiScannerMac.cpp#119
http://mxr.mozilla.org/mozilla-central/source/netwerk/wifi/nsWifiScannerMac.cpp#256
http://mxr.mozilla.org/mozilla-central/source/netwerk/wifi/nsWifiScannerSolaris.cpp#217
| Assignee | ||
Comment 1•14 years ago
|
||
Attachment #540451 -
Flags: review?(doug.turner)
Comment 2•14 years ago
|
||
Chris, any idea if this pattern occurs enough to warrant creating some kind of LoggingOnly template?
Comment 3•14 years ago
|
||
Comment on attachment 540451 [details] [diff] [review]
Fix build warnings
Maybe we should just drop the LOG() all together.
(In reply to comment #2)
> Chris, any idea if this pattern occurs enough to warrant creating some kind
> of LoggingOnly template?
I don't know; personally, I don't run across it. It's not something we would add to mfbt unless mfbt grew logging facilities, but something like a LoggingOnly helper doesn't need to live in mfbt.
| Assignee | ||
Comment 5•14 years ago
|
||
http://dev.philringnalda.com/tbpl/?tree=Try&rev=fd911766b068
Although let me know if you'd rather me just get rid of the LOG()s.
Comment 6•14 years ago
|
||
ed, get rid of the logs. rs+
| Assignee | ||
Comment 7•14 years ago
|
||
Just the LOG("... sent %d\n", rv) variants or do you mean some/all of the others whilst I'm there? (I'm presuming the former).
All LOG()s in /netwerk/wifi/
http://mxr.mozilla.org/mozilla-central/search?string=LOG%28&case=1&find=%2Fnetwerk%2Fwifi%2F&findi=&filter=^[^\0]*%24&hitlimit=&tree=mozilla-central
Updated•14 years ago
|
Attachment #540451 -
Flags: review?(doug.turner) → review-
| Assignee | ||
Comment 9•14 years ago
|
||
Doug?
:-)
| Assignee | ||
Updated•14 years ago
|
Flags: in-testsuite-
| Assignee | ||
Comment 10•14 years ago
|
||
Doug, please may I have an answer to comment 7 - I'm fairly keen to get this fairly trivial bug off my open assigned list. Thanks :-)
| Assignee | ||
Comment 11•14 years ago
|
||
Doug, it's been 6 weeks, could I have a response to comment 7 please.
Comment 12•14 years ago
|
||
sorry. my bad.
just the |LOG("... sent %d\n", rv)| ones. The others are important when debugging.
| Assignee | ||
Comment 13•14 years ago
|
||
Great, thanks Doug :-)
Summary: Fix unused variable warnings in nsWifiScanner*.cpp → Fix unused variable warnings in nsWifiMonitor.cpp
| Assignee | ||
Comment 14•14 years ago
|
||
Bug 667535 refactored the existing code, so now less instances to change.
Carrying forwards rs+ from comment 6.
Attachment #540451 -
Attachment is obsolete: true
| Assignee | ||
Comment 15•14 years ago
|
||
TortoiseHg being useless again (UI randomly resetting MQ included files so nothing gets qrefreshed).
Attachment #552951 -
Attachment is obsolete: true
| Assignee | ||
Updated•14 years ago
|
Keywords: checkin-needed
Comment 16•14 years ago
|
||
Keywords: checkin-needed
Whiteboard: [build_warning] → [build_warning][inbound]
Comment 17•14 years ago
|
||
| Assignee | ||
Updated•14 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
Comment 18•14 years ago
|
||
Whiteboard: [build_warning][inbound] → [build_warning]
You need to log in
before you can comment on or make changes to this bug.
Description
•