Mercurial > hg > toybox
changeset 435:e134aebe79c1
Silence really boring compiler warning.
author | Luis Felipe Strano Moraes <lfelipe@profusion.mobi> |
---|---|
date | Mon, 06 Feb 2012 14:36:56 -0800 |
parents | 580f4647fe2e |
children | bc347fc87b00 |
files | toys/cp.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/toys/cp.c Mon Feb 06 01:28:40 2012 -0800 +++ b/toys/cp.c Mon Feb 06 14:36:56 2012 -0800 @@ -109,10 +109,10 @@ // Can't do fchmod() etc here because -p works on mkdir, too. if (toys.optflags & FLAG_p) { - int mask = umask(0), ignored; + int mask = umask(0); struct utimbuf ut; - ignored = fchown(fdout,srcst->st_uid, srcst->st_gid); + (void) fchown(fdout,srcst->st_uid, srcst->st_gid); ut.actime = srcst->st_atime; ut.modtime = srcst->st_mtime; utime(dst, &ut);