Closed
Bug 678656
Opened 13 years ago
Closed 13 years ago
fix some debug only warnings in js/src/jsemit.cpp
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: sayrer, Assigned: sayrer)
Details
Attachments
(1 file)
390 bytes,
patch
|
dmandelin
:
review+
|
Details | Diff | Splinter Review |
jsemit.cpp: In function ‘JSBool js_EmitTree(JSContext*, JSCodeGenerator*, JSParseNode*)’: jsemit.cpp:5183: warning: ‘tps.TempPopScope::savedScopeStmt’ may be used uninitialized in this function jsemit.cpp:5183: warning: ‘tps.TempPopScope::savedBlockBox’ may be used uninitialized in this function jsemit.cpp:6697: warning: ‘tps.TempPopScope::savedScopeStmt’ may be used uninitialized in this function jsemit.cpp:6697: warning: ‘tps.TempPopScope::savedBlockBox’ may be used uninitialized in this function jsemit.cpp: In function ‘JSBool EmitSwitch(JSContext*, JSCodeGenerator*, JSParseNode*, JSStmtInfo*)’: jsemit.cpp:3177: warning: ‘tps.TempPopScope::savedScopeStmt’ may be used uninitialized in this function jsemit.cpp:3177: warning: ‘tps.TempPopScope::savedBlockBox’ may be used uninitialized in this function
Assignee | ||
Comment 1•13 years ago
|
||
Assignee: general → sayrer
Assignee | ||
Updated•13 years ago
|
Attachment #552793 -
Flags: review?(jorendorff)
Updated•13 years ago
|
Attachment #552793 -
Flags: review?(jorendorff) → review+
Assignee | ||
Updated•13 years ago
|
Whiteboard: [checkin-needed]
Comment 2•13 years ago
|
||
This warning isn't debug-only. I only see it in opt builds. I'm going to get rid of the #ifdef as well and just always initialize these. I pushed this to jsdbg2 branch. In hindsight that's a pretty silly thing to have done, but it'll land with jsdbg2, I think this weekend. If it doesn't, or if jsdbg2 bounces, I'll push it to mozilla-inbound separately.
Whiteboard: [checkin-needed]
Comment 3•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/3cc01fa9d8fb
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•