Closed
Bug 691959
Opened 14 years ago
Closed 14 years ago
GCC 4.6 build warning: "nsCSSFrameConstructor.cpp:9934:8: warning: variable 'done' set but not used [-Wunused-but-set-variable]"
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
FIXED
mozilla10
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
(Whiteboard: [inbound])
Attachments
(1 file)
|
1.24 KB,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
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:
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&root=/cvsroot&subdir=mozilla/layout/base&command=DIFF_FRAMESET&file=nsCSSFrameConstructor.cpp&rev2=1.104&rev1=1.103
with only one use:
> while (aNumFragments && !done) {
That one use was subsequently removed in this commit, in Oct 1999:
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&root=/cvsroot&subdir=mozilla/layout/base&command=DIFF_FRAMESET&file=nsCSSFrameConstructor.cpp&rev2=1.268&rev1=1.267
and this variable appears to have been unused since then.
| Assignee | ||
Updated•14 years ago
|
Blocks: buildwarning
| Assignee | ||
Comment 1•14 years ago
|
||
Comment on attachment 564694 [details] [diff] [review]
fix
r=dbaron
Attachment #564694 -
Flags: review?(dbaron) → review+
| Assignee | ||
Comment 3•14 years ago
|
||
Whiteboard: [inbound]
Comment 4•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla10
You need to log in
before you can comment on or make changes to this bug.
Description
•