gcc 3.1 warning fixes (patch 598343)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -490,7 +490,7 @@ void SliderWidgetsPage::OnSlider(wxScrollEvent& event)
|
||||
If this assert is triggered, there is an unknown slider event which
|
||||
should be added to the above eventNames array.
|
||||
*/
|
||||
wxASSERT_MSG(index >= 0 && index < WXSIZEOF(eventNames),
|
||||
wxASSERT_MSG(index >= 0 && (size_t)index < WXSIZEOF(eventNames),
|
||||
wxT("Unknown slider event") );
|
||||
|
||||
|
||||
|
||||
@@ -700,7 +700,8 @@ void TextWidgetsPage::OnButtonLoad(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
long elapsed = sw.Time();
|
||||
wxLogMessage(_T("Loaded file '%s' in %lu.%us"),
|
||||
filename.c_str(), elapsed / 1000, elapsed % 1000);
|
||||
filename.c_str(), elapsed / 1000,
|
||||
(unsigned int) elapsed % 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user