1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dominik Riebeling 2009-04-16 21:09:19 +00:00
parent e82aedd451
commit 8d24f97c2c

View file

@ -65,7 +65,10 @@ void RbSettings::sync()
{
int realuid = atoi(realuser);
int realgid = atoi(realgroup);
chown(qPrintable(userSettings->fileName()), realuid, realgid);
// 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));
}
}
#endif