Closed
Bug 59677
Opened 24 years ago
Closed 23 years ago
Occurances of uninitialized variables being used before being set.
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla0.9.9
People
(Reporter: rich.burridge, Assigned: jst)
References
Details
(Keywords: dom1, Whiteboard: [HAVE FIX])
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
For more details on this problem, see:
http://bugzilla.mozilla.org/show_bug.cgi?id=59652
This bug is just for the warnings in various source files in the DOM
modules:
/dom/src/base/nsJSEnvironment.cpp
nsJSEnvironment.cpp:454: warning: `enum JSVersion newVersion' might be used
uninitialized in this function
nsJSEnvironment.cpp:462: warning: `enum JSVersion oldVersion' might be used
uninitialized in this function
nsJSEnvironment.cpp:570: warning: `enum JSVersion newVersion' might be used
uninitialized in this function
nsJSEnvironment.cpp:578: warning: `enum JSVersion oldVersion' might be used
uninitialized in this function
nsJSEnvironment.cpp:655: warning: `enum JSVersion newVersion' might be used
uninitialized in this function
nsJSEnvironment.cpp:662: warning: `enum JSVersion oldVersion' might be used
uninitialized in this function
----
Comment 1•24 years ago
|
||
Moving DOM viewer bugs to future. I do not expect to get to these bugs any time
soon, so feel free to work on them.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Comment 2•24 years ago
|
||
wait just a second - this bug is supposed to be for the DOM, not the DOM viewer.
Assignee: alecf → jst
Status: ASSIGNED → NEW
Component: DOM Viewer → DOM Level 1
QA Contact: sspitzer → janc
Reporter | ||
Comment 3•24 years ago
|
||
Sorry, that's my fault. I wasn't sure which of the DOM modules these
warning refered to.
Updated•24 years ago
|
Component: DOM Level 1 → DOM HTML
Comment 6•23 years ago
|
||
Johnny, is the only thing to do here to use
|JSVersion oldVersion = nsnull;|
or some such instead of
|JSVersion oldVersion;|
?
It it's that simple, let me know and I'll whip up a patch.
Assignee | ||
Comment 7•23 years ago
|
||
JSVersion oldVersion = JSVERSION_DEFAULT;
Should shut down the warnings (which are compltely harmless)...
Comment 8•23 years ago
|
||
Comment 10•23 years ago
|
||
Ohhh.. I had completely forgotten about this patch... r=theworld sr=theuniverse?
(goal: reduce the number of bugs you own by 0.5%)
Comment 11•23 years ago
|
||
What happened to this bug? It has an 8 months old patch and seems completely
forgotten...
BTW, currently (http://tinderbox.mozilla.org/SeaMonkey/warn1010759460.5770.html)
the warnings are:
dom/src/base/nsJSEnvironment.cpp:537
`enum JSVersion newVersion' might be used uninitialized in this function
dom/src/base/nsJSEnvironment.cpp:545
`enum JSVersion oldVersion' might be used uninitialized in this function
dom/src/base/nsJSEnvironment.cpp:655
`enum JSVersion newVersion' might be used uninitialized in this function
dom/src/base/nsJSEnvironment.cpp:663
`enum JSVersion oldVersion' might be used uninitialized in this function
dom/src/base/nsJSEnvironment.cpp:750
`enum JSVersion oldVersion' might be used uninitialized in this function
Assignee | ||
Comment 12•23 years ago
|
||
jband, wanna stamp this with an sr=? :-)
Component: DOM HTML → DOM Other
Whiteboard: [HAVE FIX]
Target Milestone: Future → mozilla0.9.8
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Comment 13•23 years ago
|
||
I no longer see any of these warnings.
http://tinderbox.mozilla.org/SeaMonkey/warn1013026020.23864.html (Wed, 06 Feb
2002 15:07 EST).
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•