From: Stefan Csomor <csomor@advancedconcepts.ch>
Date: Sat, 24 Aug 2002 18:34:24 +0000 (+0000)
Subject: getting rid of warnings
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/79654e256bc6ee918cd15a6ec1c60c6bada8a6e8?ds=sidebyside

getting rid of warnings


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

diff --git a/src/common/filename.cpp b/src/common/filename.cpp
index 0e3653a6a3..155a9ecdd4 100644
--- a/src/common/filename.cpp
+++ b/src/common/filename.cpp
@@ -1766,7 +1766,7 @@ static void MacEnsureDefaultExtensionsLoaded()
     } ;
     // we could load the pc exchange prefs here too
 
-    for ( int i = 0 ; i < WXSIZEOF( defaults ) ; ++i )
+    for ( size_t i = 0 ; i < WXSIZEOF( defaults ) ; ++i )
     {
       gMacDefaultExtensions.Add( defaults[i] ) ;
     }
diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp
index d0deba6056..48925f3429 100644
--- a/src/common/gdicmn.cpp
+++ b/src/common/gdicmn.cpp
@@ -456,7 +456,6 @@ void wxInitializeStockObjects ()
 #if defined(__WXMAC__)
     int sizeFont = 12;
 
-    FontFamilyID fontId ;
     Str255 fontName ;
     SInt16 fontSize ;
     Style fontStyle ;
diff --git a/src/common/timercmn.cpp b/src/common/timercmn.cpp
index 93b58499e5..ed6e8c0071 100644
--- a/src/common/timercmn.cpp
+++ b/src/common/timercmn.cpp
@@ -337,7 +337,6 @@ wxLongLong wxGetLocalTimeMillis()
     return (val + tp.millitm);
 #elif defined(__WXMAC__)
     
-    unsigned long secs ;
     UInt64 gMilliAtStart = 0 ;
     Nanoseconds upTime = AbsoluteToNanoseconds( UpTime() ) ;
     if ( gMilliAtStart == 0 )
@@ -350,7 +349,7 @@ wxLongLong wxGetLocalTimeMillis()
     UInt64 millival = gMilliAtStart ;
     millival += upTime.lo / 1000 ;
     millival += ( ( (UInt64) upTime.hi ) << 32 ) / 1000 ;
-    return millival ;
+    val = millival ;
 #else // no gettimeofday() nor ftime()
     // We use wxGetLocalTime() to get the seconds since
     // 00:00:00 Jan 1st 1970 and then whatever is available