Closed
Bug 835635
Opened 13 years ago
Closed 13 years ago
nsPrintDialogGTK.cpp:343:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
933 bytes,
patch
|
karlt
:
review+
|
Details | Diff | Splinter Review |
Build warnings in nsPrintDialogGTK.cpp:
{
widget/gtk2/nsPrintDialogGTK.cpp: In function 'void ShowCustomDialog(GtkComboBox*, gpointer)':
widget/gtk2/nsPrintDialogGTK.cpp:50:78: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
widget/gtk2/nsPrintDialogGTK.cpp: In member function 'const char* nsPrintDialogWidgetGTK::OptionWidgetToString(GtkWidget*)':
widget/gtk2/nsPrintDialogGTK.cpp:343:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
widget/gtk2/nsPrintDialogGTK.cpp:345:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
}
This is because we compare 'gint' values to a macro that evaluates to ArrayLength() (which returns unsigned).
Trivial fix -- just add a gint cast to the macro.
Assignee | ||
Comment 1•13 years ago
|
||
Updated•13 years ago
|
Attachment #707382 -
Flags: review?(karlt) → review+
Assignee | ||
Comment 2•13 years ago
|
||
Flags: in-testsuite-
Comment 3•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•