diff options
-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 |