Closed Bug 598122 Opened 14 years ago Closed 14 years ago

nsDocument.cpp: In member function ‘nsresult nsDocument::CheckFrameOptions()’: warning: unused variable ‘thisPrincipal’

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 581226

People

(Reporter: dholbert, Assigned: juca)

References

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

This changeset for Bug 593387:
 http://hg.mozilla.org/mozilla-central/rev/f5c0015afe0e

added this chunk:
> 2402     // Find the top docshell in our parent chain that doesn't have the system
> 2403     // principal and use it for the principal comparison.  Finding the top
> 2404     // content-type docshell doesn't work because some chrome documents are
> 2405     // loaded in content docshells (see bug 593387).
> 2406     nsIPrincipal* thisPrincipal = NodePrincipal();
Based on the comment there, it sounds like |thisPrincipal| might be something we're interested in using. However, GCC says (and a string-search confirms) that |thisPrincipal| is unused.

bsterne: Is this as simple as just "remove line 2406", or should we actually be using thisPrincipal somewhere?
Whiteboard: [build_warning]
Good catch dholbert.  Yes, that line was left over from a previous version of the patch which used a different (principal-based) approach.  We can just remove it.
Attached patch remove itSplinter Review
Attachment #476911 - Flags: review?(dholbert)
Attachment #476911 - Flags: review?(dholbert) → review+
Comment on attachment 476911 [details] [diff] [review]
remove it

Requesting approval to remove an unused variable that was introduced by a blocker's checkin. (bug 593387)
Attachment #476911 - Flags: approval2.0?
Assignee: nobody → juca
Status: NEW → ASSIGNED
This is being fixed in bug 581226, duping (for lack of a better way to deal with a case like this).
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Attachment #476911 - Flags: approval2.0?
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: