diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-04-16 21:09:19 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-04-16 21:09:19 +0000 |
commit | 8d24f97c2c6990132bccb3a753007e3b7c004826 (patch) | |
tree | 78d25793a38a1a76956a5f84e1ff3a4683c17dab | |
parent | e82aedd45127ef7aec06d98196c89c691aedc9c8 (diff) | |
download | rockbox-8d24f97c2c6990132bccb3a753007e3b7c004826.tar.gz rockbox-8d24f97c2c6990132bccb3a753007e3b7c004826.zip |
Explicitly drop the chown() result to remove a gcc warning. chown() is warn_unused_result but we can't do anything useful in this case and it isn't a problem anyway.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20718 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | rbutil/rbutilqt/rbsettings.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/rbsettings.cpp b/rbutil/rbutilqt/rbsettings.cpp index 560b9ab5fc..5a60a67c1b 100644 --- a/rbutil/rbutilqt/rbsettings.cpp +++ b/rbutil/rbutilqt/rbsettings.cpp | |||
@@ -65,7 +65,10 @@ void RbSettings::sync() | |||
65 | { | 65 | { |
66 | int realuid = atoi(realuser); | 66 | int realuid = atoi(realuser); |
67 | int realgid = atoi(realgroup); | 67 | int realgid = atoi(realgroup); |
68 | chown(qPrintable(userSettings->fileName()), realuid, realgid); | 68 | // chown is attribute warn_unused_result, but in case this fails |
69 | // we can't do anything useful about it. Notifying the user | ||
70 | // is somewhat pointless. Add hack to suppress compiler warning. | ||
71 | if(chown(qPrintable(userSettings->fileName()), realuid, realgid)); | ||
69 | } | 72 | } |
70 | } | 73 | } |
71 | #endif | 74 | #endif |