Closed Bug 573530 Opened 15 years ago Closed 15 years ago

xpcom/build/nsXPComInit.cpp:700: warning: unused variable 'iim'

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

This change... http://hg.mozilla.org/mozilla-central/diff/894850aef55c/xpcom/build/nsXPComInit.cpp ... removed the only use of the variable "iim", so that file now spams the build warning: > ../../../mozilla/xpcom/build/nsXPComInit.cpp:700: warning: unused variable 'iim' "iim" is set here: { 699 // The iimanager constructor searches and registers XPT files. 700 nsIInterfaceInfoManager* iim = 701 xptiInterfaceInfoManager::GetSingleton(); } It looks like we're calling that just to trigger the lazy-initialization up-front, even though we don't actually need the "iim" singleton there.
Attached patch fixSplinter Review
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #452803 - Flags: review?(benjamin)
Attachment #452803 - Flags: review?(benjamin) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 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: