From: Mattia Barbon <mbarbon@cpan.org>
Date: Sat, 22 Jan 2005 13:42:33 +0000 (+0000)
Subject:   Warning fixes.
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/55e3f1c4f9a629c5ccf8fb30d717d5886c42ec43

  Warning fixes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp
index 4b596ac2f9..1beb8edcae 100644
--- a/src/common/dcbase.cpp
+++ b/src/common/dcbase.cpp
@@ -314,7 +314,7 @@ void wxDCBase::DoDrawSpline( wxList *points )
     double           x1, y1, x2, y2;
 
     wxList::compatibility_iterator node = points->GetFirst();
-    if (node == NULL)
+    if (node == wxList::compatibility_iterator())
         // empty list
         return;
 
diff --git a/src/motif/checkbox.cpp b/src/motif/checkbox.cpp
index bac4609472..7fa63cbd95 100644
--- a/src/motif/checkbox.cpp
+++ b/src/motif/checkbox.cpp
@@ -171,6 +171,7 @@ void wxCheckBox::DoSet3StateValue(wxCheckBoxState state)
     case wxCHK_UNCHECKED: value = XmUNSET; break;
     case wxCHK_CHECKED: value = XmSET; break;
     case wxCHK_UNDETERMINED: value = XmINDETERMINATE; break;
+    default: wxASSERT(0); return;
     }
 
     XtVaSetValues( (Widget) m_mainWidget,