]> git.saurik.com Git - wxWidgets.git/commitdiff
some warnings fixed, checks for various wxUSE_XXX added
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 May 2002 19:21:42 +0000 (19:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 10 May 2002 19:21:42 +0000 (19:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/console/console.cpp

index 03a237b9b1c5652df6a9d97dbef98ef748694d2f..0bca4581a549253507e798bc68fed4e49fb5fb3d 100644 (file)
@@ -2390,6 +2390,10 @@ static void TestRegExInteractive()
 // database
 // ----------------------------------------------------------------------------
 
+#if !wxUSE_ODBC
+    #undef TEST_ODBC
+#endif
+
 #ifdef TEST_ODBC
 
 #include <wx/db.h>
@@ -3346,7 +3350,7 @@ static void TestVCardWrite()
 // wxVolume tests
 // ----------------------------------------------------------------------------
 
-#if !wxUSE_FSVOLUME
+#if !defined(__WIN32__) || !wxUSE_FSVOLUME
     #undef TEST_VOLUME
 #endif
 
@@ -3831,7 +3835,7 @@ static void TestTimeTicks()
         else
         {
             printf(" (ERROR: should be %ld, delta = %ld)\n",
-                   d.ticks, ticks - d.ticks);
+                   (long)d.ticks, (long)(ticks - d.ticks));
         }
 
         dt = d.DT().ToTimezone(wxDateTime::GMT0);
@@ -3844,7 +3848,7 @@ static void TestTimeTicks()
         else
         {
             printf(" (ERROR: should be %ld, delta = %ld)\n",
-                   d.gmticks, ticks - d.gmticks);
+                   (long)d.gmticks, (long)(ticks - d.gmticks));
         }
     }