]> git.saurik.com Git - wxWidgets.git/commitdiff
warnings from FreeBSD compilation log removed
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 17 Mar 2000 14:08:54 +0000 (14:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 17 Mar 2000 14:08:54 +0000 (14:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fs_mem.cpp
src/common/utilscmn.cpp
src/generic/dragimgg.cpp
src/generic/listctrl.cpp
src/generic/splitter.cpp

index 3b45f31ae287b1cbe6ebc1f0c49263e564d5e48f..bc089b0990f7f442bfe339ccf2554c6f15fb1f75 100644 (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;
 }
 
@@ -122,12 +124,12 @@ wxString wxMemoryFSHandler::FindFirst(const wxString& spec, int flags)
 
 wxString wxMemoryFSHandler::FindNext()
 {
-    wxLogWarning(wxT("wxMemoryFSHandler::FindNext not implemented"));
+    wxFAIL_MSG(wxT("wxMemoryFSHandler::FindNext not implemented"));
+
     return wxEmptyString;
 }
 
 
-
 bool wxMemoryFSHandler::CheckHash(const wxString& filename)
 {
     if (m_Hash == NULL) 
index 5fee1a66cac06491aed66016eee211c9a9877d4d..2ac002dec36b657aa3d378faeba6a93568250149 100644 (file)
@@ -1047,7 +1047,7 @@ wxWindowDisabler::~wxWindowDisabler()
 // the given one
 bool wxSafeYield(wxWindow *win)
 {
-    wxWindowDisabler wd;
+    wxWindowDisabler wd(win);
 
     bool rc = wxYield();
 
index 747b155153e19d0811763ad32285e004b3181f32..dc79dc7d7417f705a658cf2255e7eed8ee28e7ab 100644 (file)
@@ -183,7 +183,10 @@ bool wxGenericDragImage::Create(const wxListCtrl& listCtrl, long id)
 }
 
 // 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."));
 
index 90f95e61f752e5315ec1428b4aa4170df9c6934f..128c1fc02759f4fec5cecfc28a9e051d5fc511c0 100644 (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.y = y;
index f806238232c59104802fade4d575b2c43acd3750..01167426965d66c64ef60042549dc0d4b82c3707 100644 (file)
@@ -939,7 +939,13 @@ void wxSplitterWindow::OnUnsplitEvent(wxSplitterEvent& event)
     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...
 #ifdef __WXMSW__