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)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla10

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

(Whiteboard: [inbound])

Attachments

(1 file)

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.
Blocks: buildwarning
Attached patch fixSplinter Review
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #564694 - Flags: review?(dbaron)
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.

Attachment

General

Created:
Updated:
Size: