Closed Bug 666481 Opened 13 years ago Closed 13 years ago

jsatom.cpp:945:12: warning: variable ‘count’ set but not used

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

(Whiteboard: [build_warning][fixed-in-tracemonkey])

Attachments

(1 file)

gcc-4.6 reports this build warning:
js/src/jsatom.cpp: In function ‘void js_InitAtomMap(JSContext*, JSAtomMap*, JSAtomList*)’:
js/src/jsatom.cpp:945:12: warning: variable ‘count’ set but not used [-Wunused-but-set-variable]

Bug 385729 removed the last usages of this variable 'count'[1], but left the variable there.  It looks like this variable can just go away.

[1] Lines 1.156 & 1.161 of http://hg.mozilla.org/mozilla-central/diff/5db593415bf1/js/src/jsatom.c#l1.156
Attached patch fixSplinter Review
Attachment #541262 - Flags: review?(igor)
Comment on attachment 541262 [details] [diff] [review]
fix

Review of attachment 541262 [details] [diff] [review]:
-----------------------------------------------------------------

That is a nice feature of GCC 4.6!
Attachment #541262 - Flags: review?(igor) → review+
Assignee: general → dholbert
Status: NEW → ASSIGNED
http://hg.mozilla.org/tracemonkey/rev/4f1eb9b43658
Whiteboard: [build_warning] → [build_warning][fixed-in-tracemonkey]
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: