]> git.saurik.com Git - wxWidgets.git/commitdiff
Warning fixes.
authorMattia Barbon <mbarbon@cpan.org>
Sat, 22 Jan 2005 13:42:33 +0000 (13:42 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sat, 22 Jan 2005 13:42:33 +0000 (13:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcbase.cpp
src/motif/checkbox.cpp

index 4b596ac2f97b87ff675394b1c631ebe75c463ac1..1beb8edcae184a1f75c519222fdc2d04ebeeef6f 100644 (file)
@@ -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;
 
index bac46094725f1599df778ed65f92e97b6401939e..7fa63cbd95e2b4c5510ab2b4f4a35ea5ec35fc58 100644 (file)
@@ -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,