Last Comment Bug 691959 - GCC 4.6 build warning: "nsCSSFrameConstructor.cpp:9934:8: warning: variable 'done' set but not used [-Wunused-but-set-variable]"
: GCC 4.6 build warning: "nsCSSFrameConstructor.cpp:9934:8: warning: variable '...
Product: Core
Classification: Components
Component: Layout: Text (show other bugs)
: Trunk
: x86_64 Linux
-- normal (vote)
: mozilla10
Assigned To: Daniel Holbert [:dholbert]
Depends on:
Blocks: buildwarning
  Show dependency treegraph
Reported: 2011-10-04 16:06 PDT by Daniel Holbert [:dholbert]
Modified: 2011-10-09 07:32 PDT (History)
1 user (show)
Ms2ger: in‑testsuite-
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

fix (1.24 KB, patch)
2011-10-04 16:10 PDT, Daniel Holbert [:dholbert]
dbaron: review+
Details | Diff | Splinter Review

Description User image Daniel Holbert [:dholbert] 2011-10-04 16:06:32 PDT
Filing bug on this GCC 4.6 build warning (the only one I get for nsCSSFrameConstructor.cpp):
> nsCSSFrameConstructor.cpp: In function 'PRInt32 FirstLetterCount(const nsTextFragment*)':
> nsCSSFrameConstructor.cpp:9934:8: warning: variable 'done' set but not used [-Wunused-but-set-variable]

This variable was added in April 1999 in this CVS commit:
with only one use:
> while (aNumFragments && !done) {

That one use was subsequently removed in this commit, in Oct 1999:

and this variable appears to have been unused since then.
Comment 1 User image Daniel Holbert [:dholbert] 2011-10-04 16:10:00 PDT
Created attachment 564694 [details] [diff] [review]
Comment 2 User image David Baron :dbaron: ⌚️UTC-8 2011-10-08 11:54:01 PDT
Comment on attachment 564694 [details] [diff] [review]

Comment 3 User image Daniel Holbert [:dholbert] 2011-10-08 14:46:19 PDT
Comment 4 User image :Ms2ger (⌚ UTC+1/+2) 2011-10-09 07:32:27 PDT

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