]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filefn.cpp
Unix compilation warning fixes
[wxWidgets.git] / src / common / filefn.cpp
index fbb1a719bb2594a8d0890e4d55043b8e384cd263..39539d65fd19720b0328d9bafb05c3e1b962bbca 100644 (file)
@@ -214,7 +214,9 @@ void wxPathList::AddEnvList (const wxString& envVariable)
 
         delete [] s;
     }
-#endif
+#else // __WXWINCE__
+    wxUnusedVar(envVariable);
+#endif // !__WXWINCE__/__WXWINCE__
 }
 
 // Given a full filename (with path), ensure that that file can
@@ -681,6 +683,8 @@ wxContractPath (const wxString& filename, const wxString& envname, const wxStrin
         wxStrcat (tcp, wxT("}"));
         wxStrcat (tcp, wxFileFunctionsBuffer);
     }
+#else
+  wxUnusedVar(envname);
 #endif
 
   // Handle User's home (ignore root homes!)
@@ -1330,6 +1334,9 @@ wxChar *wxGetWorkingDirectory(wxChar *buf, int sz)
     // TODO ?
     return NULL;
 #elif defined(__WXWINCE__)
+    // TODO
+    wxUnusedVar(buf);
+    wxUnusedVar(sz);
     return NULL;
 #else
     if ( !buf )
@@ -1471,6 +1478,7 @@ bool wxSetWorkingDirectory(const wxString& d)
 #ifdef __WIN32__
 #ifdef __WXWINCE__
     // No equivalent in WinCE
+    wxUnusedVar(d);
     return false;
 #else
     return (bool)(SetCurrentDirectory(d) != 0);
@@ -1936,11 +1944,22 @@ wxFileKind wxGetFileKind(int fd)
     return wxFILE_KIND_DISK;
 
 #else
+    #define wxFILEKIND_STUB
     (void)fd;
     return wxFILE_KIND_DISK;
 #endif
 }
 
+wxFileKind wxGetFileKind(FILE *fp)
+{
+#ifndef wxFILEKIND_STUB
+    return wxGetFileKind(fileno(fp));
+#else
+    (void)fp;
+    return wxFILE_KIND_DISK;
+#endif
+}
+
 #ifdef __VISUALC__
     #pragma warning(default:4706)   // assignment within conditional expression
 #endif // VC++