Closed Bug 687166 Opened 13 years ago Closed 13 years ago

GCC 4.6 build warning: "layout/xul/base/src/nsSplitterFrame.cpp:997: warning: variable 'current' set but not used [-Wunused-but-set-variable]"

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla10

People

(Reporter: froydnj, Assigned: froydnj)

References

(Blocks 1 open bug)

Details

(Whiteboard: [build_warning])

Attachments

(1 file, 2 obsolete files)

The `current' variable in nsSplitterFrameInner::SetPreferredSize is set but unused.  Patch coming up.
Assignee: nobody → nfroyd
Attachment #560633 - Flags: review?(Olli.Pettay)
Comment on attachment 560633 [details] [diff] [review]
remove set-but-unused variable current

Could you remove also 
//printf("current=%d, pref=%d", current/onePixel, pref/onePixel);
Attachment #560633 - Flags: review?(Olli.Pettay) → review+
Blocks: buildwarning
Whiteboard: [build_warning]
Keywords: checkin-needed
Attached patch Rebase with the bool change (obsolete) — Splinter Review
Attachment #560633 - Attachment is obsolete: true
(In reply to Atul Aggarwal from comment #3)
I suppose you'd like to carry over review+.
Comment on attachment 565210 [details] [diff] [review]
GCC 4.6 build warning: "layout/xul/base/src/nsSplitterFrame.cpp:997: warning: variable current set but not used [-Wunused-but-set-variable]".

Rebased patch with smaug's requested change.  Carrying over initial r+.
Attachment #565210 - Flags: review+
Comment on attachment 564030 [details] [diff] [review]
Rebase with the bool change

Marking previous rebased patch as obsolete.
Attachment #564030 - Attachment is obsolete: true
Comment on attachment 565210 [details] [diff] [review]
GCC 4.6 build warning: "layout/xul/base/src/nsSplitterFrame.cpp:997: warning: variable current set but not used [-Wunused-but-set-variable]".

Whoops, I'm not the reviewer here.
In my queue, which is heading to try first then inbound :-)
https://tbpl.mozilla.org/?tree=Try&rev=a8fbb2a76633
Keywords: checkin-needed
OS: Linux → All
Hardware: x86 → All
https://hg.mozilla.org/integration/mozilla-inbound/rev/d7b86824694a
Status: NEW → ASSIGNED
Flags: in-testsuite-
Target Milestone: --- → mozilla10
Version: unspecified → Trunk
https://hg.mozilla.org/mozilla-central/rev/d7b86824694a
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: