Closed Bug 772738 Opened 13 years ago Closed 13 years ago

Avoid "unused variable 'tmp'" warnings for empty CC traverse method implementations

Categories

(Core :: XPCOM, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

moz/mozilla-central/dom/indexedDB/IDBWrapperCache.cpp:14:1: warning: unused variable 'tmp' [-Wunused-variable] NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(IDBWrapperCache, ^ ../../dist/include/nsCycleCollectionParticipant.h:517:3: note: expanded from macro 'NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED' NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INTERNAL(_class) \ ^ ../../dist/include/nsCycleCollectionParticipant.h:504:13: note: expanded from macro 'NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INTERNAL' _class *tmp = static_cast<_class*>(Downcast(s)); ^ 1 warning generated. The UNLINK_END macro has this protection in place. We should add it for TRAVERSE too.
Whiteboard: [build_warning]
Attached patch Patch (v1)Splinter Review
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #640909 - Flags: review?(bugs)
Attachment #640909 - Flags: review?(bugs) → review+
Target Milestone: --- → mozilla16
Weird, I thought I'd gone through and fixed all of these. Thanks for fixing it!
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: