diff options
author | Max Horn | 2007-09-18 20:46:22 +0000 |
---|---|---|
committer | Max Horn | 2007-09-18 20:46:22 +0000 |
commit | 90399fbf9cb99288f2bd2b7b9e7d3d39707a1609 (patch) | |
tree | 4d9e07554def7217e47a63a18d47fa1086b210b7 /common | |
parent | a8751e4d732aa8290d8f4388398bedacd943822d (diff) | |
download | scummvm-rg350-90399fbf9cb99288f2bd2b7b9e7d3d39707a1609.tar.gz scummvm-rg350-90399fbf9cb99288f2bd2b7b9e7d3d39707a1609.tar.bz2 scummvm-rg350-90399fbf9cb99288f2bd2b7b9e7d3d39707a1609.zip |
Fix some warnings
svn-id: r28947
Diffstat (limited to 'common')
-rw-r--r-- | common/file.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/common/file.cpp b/common/file.cpp index 214c980d5a..2c485627bb 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -411,10 +411,12 @@ bool File::open(const FilesystemNode &node, AccessMode mode) { bool File::remove(const String &filename){ if (remove(filename.c_str()) != 0) { - if (errno == EACCES) - ;//TODO: read-only file - if (errno == ENOENT) - ;//TODO: non-existent file + if (errno == EACCES) { + //TODO: read-only file + } + if (errno == ENOENT) { + //TODO: non-existent file + } return false; } else { @@ -424,10 +426,12 @@ bool File::remove(const String &filename){ bool File::remove(const FilesystemNode &node){ if (remove(node.getPath()) != 0) { - if (errno == EACCES) - ;//TODO: read-only file - if (errno == ENOENT) - ;//TODO: non-existent file + if (errno == EACCES) { + //TODO: read-only file + } + if (errno == ENOENT) { + //TODO: non-existent file + } return false; } else { |