Closed Bug 665622 Opened 13 years ago Closed 13 years ago

Fix unused variable warnings in GLContext.cpp & GLContextProviderEGL.cpp

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla7

People

(Reporter: emorley, Assigned: emorley)

References

(Blocks 1 open bug)

Details

(Whiteboard: [build_warning][inbound])

Attachments

(1 file)

gfx/thebes/GLContext.cpp:1780:16: warning: unused variable 'status'
http://mxr.mozilla.org/mozilla-central/source/gfx/thebes/GLContext.cpp#1780

gfx/thebes/GLContextProviderEGL.cpp:1770: warning: unused variable 'context'
http://mxr.mozilla.org/mozilla-central/source/gfx/thebes/GLContextProviderEGL.cpp#1770

gfx/thebes/GLContextProviderEGL.cpp:2168: warning: unused variable 'context'
http://mxr.mozilla.org/mozilla-central/source/gfx/thebes/GLContextProviderEGL.cpp#2168

gfx/thebes/GLContextProviderEGL.cpp:2169: warning: unused variable 'config'
http://mxr.mozilla.org/mozilla-central/source/gfx/thebes/GLContextProviderEGL.cpp#2169
For the GLContext.cpp change, I'm wondering whether the whole |fCheckFramebufferStatus(LOCAL_GL_FRAMEBUFFER)| line can be put inside an #ifdef DEBUG block, since it would seem that the call isn't required at all, since it does nothing other than check the status. Or does it still need to be called?

If the call isn't needed, is there a DebugOnly macro for the whole line (as opposed to just the variable), or do I just fall back to #ifdef DEBUG?

Thanks :-)
Attachment #540534 - Flags: review?(joe)
Attachment #540534 - Flags: review?(joe) → review+
Joe, thanks for the quick review :-) Just wanted to double check before I mark this checkin-needed, that comment 1 didn't apply? Thanks!
Better to keep it for now.
Keywords: checkin-needed
http://hg.mozilla.org/integration/mozilla-inbound/rev/093d1650e7a7
Keywords: checkin-needed
Whiteboard: [build_warning] → [build_warning][inbound]
http://hg.mozilla.org/mozilla-central/rev/093d1650e7a7
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
Verified that the following files were updated in mozillla-central repository: 
gfx/thebes/GLContext.cpp
gfx/thebes/GLContextProviderEGL.cpp

Is this enough to verify the fix and mark the bug accordigly (VERIFIED-FIXED)?

Thank you!
Yup, I'd say so.  Setting to VERIFIED based on comment 7. Thanks!
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: