Last Comment Bug 703411 - GCC 4.6 build warning: "gfxUserFontSet.cpp:582:16: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]"
: GCC 4.6 build warning: "gfxUserFontSet.cpp:582:16: warning: variable ‘status’...
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: Layout: Text (show other bugs)
: Trunk
: All All
: -- normal (vote)
: mozilla11
Assigned To: Jonathan Kew (:jfkthame)
:
Mentors:
Depends on:
Blocks: buildwarning 499292
  Show dependency treegraph
 
Reported: 2011-11-17 15:07 PST by Daniel Holbert [:dholbert]
Modified: 2011-11-21 09:07 PST (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
patch, remove obsolete variable (871 bytes, patch)
2011-11-17 15:17 PST, Jonathan Kew (:jfkthame)
jd.bugzilla: review+
Details | Diff | Review

Description Daniel Holbert [:dholbert] 2011-11-17 15:07:30 PST
Filing bug for this GCC 4.6 build warning:
{
gfx/thebes/gfxUserFontSet.cpp: In member function ‘bool gfxUserFontSet::OnLoadComplete(gfxProxyFontEntry*, const PRUint8*, PRUint32, nsresult)’:
gfx/thebes/gfxUserFontSet.cpp:582:16: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
}

This warning seems to have been introduced by bug 499292, which removed the last usage of this variable:
http://hg.mozilla.org/mozilla-central/rev/7698f12bbe7d#l4.86
Comment 1 Jonathan Kew (:jfkthame) 2011-11-17 15:17:47 PST
Created attachment 575307 [details] [diff] [review]
patch, remove obsolete variable

We no longer care about the return value here, so we can just discard it and remove the variable.
Comment 3 Matt Brubeck (:mbrubeck) 2011-11-21 09:07:47 PST
https://hg.mozilla.org/mozilla-central/rev/909ff89ee487

Note You need to log in before you can comment on or make changes to this bug.