Closed Bug 603724 Opened 14 years ago Closed 14 years ago

widget/src/gtk2/nsWindow.cpp:293: warning: 'PRBool UseShm()' defined but not used

Categories

(Core :: Widget: Gtk, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b7

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

(Whiteboard: [build_warning])

Attachments

(1 file)

> mozilla/widget/src/gtk2/nsWindow.cpp: At global scope: > mozilla/widget/src/gtk2/nsWindow.cpp:293: warning: 'PRBool UseShm()' defined but not used Looks like the only uses of this method are in #ifdef MOZ_HAVE_SHMIMAGE blocks. So, the method definition itself should probably be #ifdef'd, too.
Whiteboard: [build_warning]
Attached patch fixSplinter Review
Attachment #482630 - Flags: review?(jones.chris.g)
(Confirmed that this builds successfully & fixes the build warning, on my machine)
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Comment on attachment 482630 [details] [diff] [review] fix So much for cutting down on ifdefs. |inline UseShm() {| would have worked too, but the other formerly non-ifdef'd uses of this function were requested to be ifdef'd in review, so this patch is better for consistency.
Attachment #482630 - Flags: review?(jones.chris.g) → review+
Comment on attachment 482630 [details] [diff] [review] fix Requesting approval. Trivial change -- just adds #ifdefs around a static variable & method that are only used inside of other #ifdefs, to fix a build warning.
Attachment #482630 - Flags: approval2.0?
Whiteboard: [build_warning] → [build_warning][needs landing]
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [build_warning][needs landing] → [build_warning]
Target Milestone: --- → mozilla2.0b8
Target Milestone: mozilla2.0b8 → mozilla2.0b7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: