summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-10-14 20:43:50 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-10-14 20:43:50 +0000
commit1383be8fb0404b875440d22a6617191ae590c831 (patch)
treea4bfce651c12c0a1f791a3264668ac7d0b9fa44d /rbutil
parent0fcc84f46370f972059860bd19c61de9926ee29d (diff)
downloadrockbox-1383be8fb0404b875440d22a6617191ae590c831.tar.gz
rockbox-1383be8fb0404b875440d22a6617191ae590c831.tar.bz2
rockbox-1383be8fb0404b875440d22a6617191ae590c831.zip
Fix a compiler warning showing up with newer gcc versions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23175 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/base/rbsettings.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/rbsettings.cpp b/rbutil/rbutilqt/base/rbsettings.cpp
index b1c6500ed2..bd6f94f2f4 100644
--- a/rbutil/rbutilqt/base/rbsettings.cpp
+++ b/rbutil/rbutilqt/base/rbsettings.cpp
@@ -151,7 +151,8 @@ void RbSettings::sync()
// chown is attribute warn_unused_result, but in case this fails
// we can't do anything useful about it. Notifying the user
// is somewhat pointless. Add hack to suppress compiler warning.
- if(chown(qPrintable(userSettings->fileName()), realuid, realgid));
+ if(chown(qPrintable(userSettings->fileName()), realuid, realgid))
+ { }
}
}
#endif