X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c86f1403c3737c07d58676a203f4707942684a01..520e470fdd0daef09c77938db642e4583933c90d:/src/common/file.cpp diff --git a/src/common/file.cpp b/src/common/file.cpp index 44c4b7b77f..6cb6e3f059 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -132,7 +132,7 @@ bool wxFile::Exists(const char *name) bool wxFile::Access(const char *name, OpenMode mode) { - int how; + int how = 0; switch ( mode ) { case read: @@ -276,7 +276,7 @@ bool wxFile::Flush() if ( IsOpened() ) { // @@@ fsync() is not ANSI (BSDish) // if ( fsync(m_fd) == -1 ) { // TODO - if (TRUE) { + if (wxTrue) { wxLogSysError(_("can't flush file descriptor %d"), m_fd); return FALSE; }