Closed Bug 714563 Opened 13 years ago Closed 13 years ago

Fix unused variable compiler warnings for Handle<T> class

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 713311

People

(Reporter: billm, Assigned: billm)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
I'm still getting warnings with gcc 4.6.1.
Attachment #585234 - Flags: review?(bhackett1024)
Better compiler analysis is just going to uncover that, could we use something like 
this http://stackoverflow.com/questions/965093/selectively-disable-gcc-warnings-for-only-part-of-a-translation-unit ?
Attachment #585234 - Flags: review?(bhackett1024) → review+
Comment on attachment 585234 [details] [diff] [review]
patch

Is there anything wrong with the old-fashioned |(void)a;| ?
Does that work? I used the scheme here because that's what Chrome does in their handle class.
I've used it lots of times in the past and I don't see any reason why it wouldn't work here.
I guess Luke already fixed this here:
http://hg.mozilla.org/mozilla-central/rev/f0d76403ae9c
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Yeah, that warning was annoying.  I used (void)a.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: