]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed some warnings about unused variables values
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 11 Aug 2003 01:22:21 +0000 (01:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 11 Aug 2003 01:22:21 +0000 (01:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/appcmn.cpp
src/common/datetime.cpp
src/common/dircmn.cpp

index 926104d482de28624fcfaa97db268dfee8601645..162512f876e64406ae2e43bc92e35fd0d38aa6c6 100644 (file)
@@ -323,7 +323,6 @@ bool wxAppBase::ProcessIdle()
     wxIdleEvent event;
     bool needMore = FALSE;
     wxWindowList::compatibility_iterator node = wxTopLevelWindows.GetFirst();
-    node = wxTopLevelWindows.GetFirst();
     while (node)
     {
         wxWindow* win = node->GetData();
index e2b9155f69644ebdd334f3816665bc588fdfc945..56324c0d3da9fe60952fd8d5cd3dbbe43e0a6f5f 100644 (file)
@@ -257,11 +257,10 @@ wxDateTime::wxDateTime_t GetNumOfDaysInMonth(int year, wxDateTime::Month month)
 // (in seconds)
 static int GetTimeZone()
 {
+#ifdef WX_GMTOFF_IN_TM
     // set to TRUE when the timezone is set
     static bool s_timezoneSet = FALSE;
-#ifdef WX_GMTOFF_IN_TM
     static long gmtoffset = LONG_MAX; // invalid timezone
-#endif
 
     // ensure that the timezone variable is set by calling localtime
     if ( !s_timezoneSet )
@@ -274,19 +273,16 @@ static int GetTimeZone()
         tm = localtime(&t);
         s_timezoneSet = TRUE;
 
-#ifdef WX_GMTOFF_IN_TM
         // note that GMT offset is the opposite of time zone and so to return
         // consistent results in both WX_GMTOFF_IN_TM and !WX_GMTOFF_IN_TM
         // cases we have to negate it
         gmtoffset = -tm->tm_gmtoff;
-#endif
     }
 
-#ifdef WX_GMTOFF_IN_TM
     return (int)gmtoffset;
-#else
+#else // !WX_GMTOFF_IN_TM
     return (int)WX_TIMEZONE;
-#endif
+#endif // WX_GMTOFF_IN_TM/!WX_GMTOFF_IN_TM
 }
 
 // return the integral part of the JDN for the midnight of the given date (to
index 801e2d1f9f9b059c89490de38bc91286ea6f64f3..e613a8b038f3a9646056c98e8b9f0a9b3a6c7423 100644 (file)
@@ -100,7 +100,7 @@ size_t wxDir::Traverse(wxDirTraverser& sink,
         wxString dirname;
         for ( bool cont = GetFirst(&dirname, _T(""), wxDIR_DIRS | wxDIR_HIDDEN);
               cont;
-              cont = GetNext(&dirname) )
+              cont = cont && GetNext(&dirname) )
         {
             const wxString fulldirname = prefix + dirname;