aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2007-09-18 20:46:22 +0000
committerMax Horn2007-09-18 20:46:22 +0000
commit90399fbf9cb99288f2bd2b7b9e7d3d39707a1609 (patch)
tree4d9e07554def7217e47a63a18d47fa1086b210b7 /common
parenta8751e4d732aa8290d8f4388398bedacd943822d (diff)
downloadscummvm-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.cpp20
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 {