From af37aa64e182c863dce7b77dd17ab67cff64875c Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 9 Jul 2014 11:52:06 +0200 Subject: [PATCH] Isolate: Silenced warnings on unused parameters --- isolate/isolate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/isolate/isolate.c b/isolate/isolate.c index b0cbb9a..78567ab 100644 --- a/isolate/isolate.c +++ b/isolate/isolate.c @@ -261,7 +261,7 @@ static int dir_exists(char *path) } static int rmtree_helper(const char *fpath, const struct stat *sb, - int typeflag, struct FTW *ftwbuf) + int typeflag UNUSED, struct FTW *ftwbuf UNUSED) { if (S_ISDIR(sb->st_mode)) { @@ -284,8 +284,8 @@ rmtree(char *path) static uid_t chown_uid; static gid_t chown_gid; -static int chowntree_helper(const char *fpath, const struct stat *sb, - int typeflag, struct FTW *ftwbuf) +static int chowntree_helper(const char *fpath, const struct stat *sb UNUSED, + int typeflag UNUSED, struct FTW *ftwbuf UNUSED) { if (lchown(fpath, chown_uid, chown_gid) < 0) die("Cannot chown %s: %m", fpath); -- 2.39.2