Closed
Bug 11458
Opened 25 years ago
Closed 25 years ago
compiler warning
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
CLOSED
FIXED
M10
People
(Reporter: Brade, Assigned: norrisboyd)
References
Details
In mozilla/dom/src/base/nsJSSecurityManager.cpp in nsJSSecurityManager::SetContainerPrincipals() a warning from the Macintosh compiler: possible unintended semi-colon (line 829) This can be fixed by moving the semicolon to a new line or enclosing it in {}. The reason I recommend this particular warning be fixed is that someone might see the warning and make the wrong assumption on how to fix the warning and we'd have a hard time tracking down this kind of a bug if it were incorrectly fixed.
Summary: compiler warning on Macintosh → [PP]compiler warning on Macintosh
Reporter | ||
Updated•25 years ago
|
Hardware: Macintosh → All
Summary: [PP]compiler warning on Macintosh → compiler warning
Reporter | ||
Comment 2•25 years ago
|
||
removing [PP] designation as this code is cross-platform. I'd guess that this same warning appears on other platforms as well.
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•25 years ago
|
||
I'm assuming this warning is for the line while (nsnull != (aContainer = JS_GetParent(aCx, aContainer))); I think that this line is incorrect anyway: aContainer will always be null on exit from the loop. I don't think joki had a chance to test this code.
Reporter | ||
Comment 4•25 years ago
|
||
yes, that is the line of code being flagged.
Assignee | ||
Updated•25 years ago
|
Target Milestone: M10
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•25 years ago
|
||
Function and file removed as part of general cleanup.
Reporter | ||
Updated•25 years ago
|
Status: RESOLVED → CLOSED
Reporter | ||
Comment 6•25 years ago
|
||
closing bug; file is no longer in the current tree
You need to log in
before you can comment on or make changes to this bug.
Description
•