Closed Bug 292002 Opened 20 years ago Closed 19 years ago

build warning in nsFormFillController.cpp

Categories

(Toolkit :: Autocomplete, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 303779

People

(Reporter: bugzilla, Unassigned)

Details

when building on gcc on windows I got:

e:/mozilla/mozilla/toolkit/components/satchel/src/nsFormFillController.cpp: In
function `nsRect GetScreenOrigin(nsIDOMElement*)':
e:/mozilla/mozilla/toolkit/components/satchel/src/nsFormFillController.cpp:144:
warning: unused variable 'rv'

should I just remove the rv variable to should I make a check to see if it's null?

Something like this:

nsresult rv = presShell->GetPrimaryFrameFor(content, &frame);
NS_ENSURE_SUCCESS(rv, rv);

*** This bug has been marked as a duplicate of 303779 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.