warnings from FreeBSD compilation log removed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-03-17 14:08:54 +00:00
parent f4bfe7e0c1
commit bc1dcfc1aa
5 changed files with 20 additions and 8 deletions

View File

@@ -112,9 +112,11 @@ wxFSFile* wxMemoryFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString
wxString wxMemoryFSHandler::FindFirst(const wxString& spec, int flags) wxString wxMemoryFSHandler::FindFirst(const wxString& WXUNUSED(spec),
int WXUNUSED(flags))
{ {
wxLogWarning(wxT("wxMemoryFSHandler::FindFirst not implemented")); wxFAIL_MSG(wxT("wxMemoryFSHandler::FindFirst not implemented"));
return wxEmptyString; return wxEmptyString;
} }
@@ -122,12 +124,12 @@ wxString wxMemoryFSHandler::FindFirst(const wxString& spec, int flags)
wxString wxMemoryFSHandler::FindNext() wxString wxMemoryFSHandler::FindNext()
{ {
wxLogWarning(wxT("wxMemoryFSHandler::FindNext not implemented")); wxFAIL_MSG(wxT("wxMemoryFSHandler::FindNext not implemented"));
return wxEmptyString; return wxEmptyString;
} }
bool wxMemoryFSHandler::CheckHash(const wxString& filename) bool wxMemoryFSHandler::CheckHash(const wxString& filename)
{ {
if (m_Hash == NULL) if (m_Hash == NULL)

View File

@@ -1047,7 +1047,7 @@ wxWindowDisabler::~wxWindowDisabler()
// the given one // the given one
bool wxSafeYield(wxWindow *win) bool wxSafeYield(wxWindow *win)
{ {
wxWindowDisabler wd; wxWindowDisabler wd(win);
bool rc = wxYield(); bool rc = wxYield();

View File

@@ -183,7 +183,10 @@ bool wxGenericDragImage::Create(const wxListCtrl& listCtrl, long id)
} }
// Begin drag // Begin drag
bool wxGenericDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen, wxRect* rect) bool wxGenericDragImage::BeginDrag(const wxPoint& WXUNUSED(hotspot),
wxWindow* window,
bool fullScreen,
wxRect* rect)
{ {
wxASSERT_MSG( (window != 0), wxT("Window must not be null in BeginDrag.")); wxASSERT_MSG( (window != 0), wxT("Window must not be null in BeginDrag."));

View File

@@ -722,7 +722,8 @@ void wxListLineData::CalculateSize( wxDC *dc, int spacing )
} }
} }
void wxListLineData::SetPosition( wxDC *dc, int x, int y, int window_width ) void wxListLineData::SetPosition( wxDC * WXUNUSED(dc),
int x, int y, int window_width )
{ {
m_bound_all.x = x; m_bound_all.x = x;
m_bound_all.y = y; m_bound_all.y = y;

View File

@@ -939,7 +939,13 @@ void wxSplitterWindow::OnUnsplitEvent(wxSplitterEvent& event)
OnUnsplit(win); OnUnsplit(win);
} }
void wxSplitterWindow::OnSetCursor(wxSetCursorEvent& event) #if defined(__WXMSW__)
#define WXUNUSED_UNLESS_MSW(identifier) identifier
#else
#define WXUNUSED_UNLESS_MSW(identifier) WXUNUSED(identifier)
#endif
void wxSplitterWindow::OnSetCursor(wxSetCursorEvent& WXUNUSED_UNLESS_MSW(event))
{ {
// this is currently called (and needed) under MSW only... // this is currently called (and needed) under MSW only...
#ifdef __WXMSW__ #ifdef __WXMSW__