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:
parent
e82aedd451
commit
8d24f97c2c
1 changed files with 4 additions and 1 deletions
|
@ -65,7 +65,10 @@ void RbSettings::sync()
|
||||||
{
|
{
|
||||||
int realuid = atoi(realuser);
|
int realuid = atoi(realuser);
|
||||||
int realgid = atoi(realgroup);
|
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
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue