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;
bool needMore = FALSE;
wxWindowList::compatibility_iterator node = wxTopLevelWindows.GetFirst();
node = wxTopLevelWindows.GetFirst();
while (node)
{
wxWindow* win = node->GetData();

View 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

View 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;