fixed some warnings about unused variables values

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-08-11 01:22:21 +00:00
parent 429ef4bcea
commit 51485b7601
3 changed files with 4 additions and 9 deletions

View File

@@ -323,7 +323,6 @@ bool wxAppBase::ProcessIdle()
wxIdleEvent event; wxIdleEvent event;
bool needMore = FALSE; bool needMore = FALSE;
wxWindowList::compatibility_iterator node = wxTopLevelWindows.GetFirst(); wxWindowList::compatibility_iterator node = wxTopLevelWindows.GetFirst();
node = wxTopLevelWindows.GetFirst();
while (node) while (node)
{ {
wxWindow* win = node->GetData(); wxWindow* win = node->GetData();

View File

@@ -257,11 +257,10 @@ wxDateTime::wxDateTime_t GetNumOfDaysInMonth(int year, wxDateTime::Month month)
// (in seconds) // (in seconds)
static int GetTimeZone() static int GetTimeZone()
{ {
#ifdef WX_GMTOFF_IN_TM
// set to TRUE when the timezone is set // set to TRUE when the timezone is set
static bool s_timezoneSet = FALSE; static bool s_timezoneSet = FALSE;
#ifdef WX_GMTOFF_IN_TM
static long gmtoffset = LONG_MAX; // invalid timezone static long gmtoffset = LONG_MAX; // invalid timezone
#endif
// ensure that the timezone variable is set by calling localtime // ensure that the timezone variable is set by calling localtime
if ( !s_timezoneSet ) if ( !s_timezoneSet )
@@ -274,19 +273,16 @@ static int GetTimeZone()
tm = localtime(&t); tm = localtime(&t);
s_timezoneSet = TRUE; s_timezoneSet = TRUE;
#ifdef WX_GMTOFF_IN_TM
// note that GMT offset is the opposite of time zone and so to return // 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 // consistent results in both WX_GMTOFF_IN_TM and !WX_GMTOFF_IN_TM
// cases we have to negate it // cases we have to negate it
gmtoffset = -tm->tm_gmtoff; gmtoffset = -tm->tm_gmtoff;
#endif
} }
#ifdef WX_GMTOFF_IN_TM
return (int)gmtoffset; return (int)gmtoffset;
#else #else // !WX_GMTOFF_IN_TM
return (int)WX_TIMEZONE; 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 // return the integral part of the JDN for the midnight of the given date (to

View File

@@ -100,7 +100,7 @@ size_t wxDir::Traverse(wxDirTraverser& sink,
wxString dirname; wxString dirname;
for ( bool cont = GetFirst(&dirname, _T(""), wxDIR_DIRS | wxDIR_HIDDEN); for ( bool cont = GetFirst(&dirname, _T(""), wxDIR_DIRS | wxDIR_HIDDEN);
cont; cont;
cont = GetNext(&dirname) ) cont = cont && GetNext(&dirname) )
{ {
const wxString fulldirname = prefix + dirname; const wxString fulldirname = prefix + dirname;