From 061be82e31f0d08804cd5d0edc2244540200fcea Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 22 May 2018 09:07:42 +0200 Subject: core: replace (void) with UNUSED(x) and include ssrf.h Unused parameters in C are "silenced" by adding UNUSED(x) Signed-off-by: Jan Iversen --- core/save-git.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'core/save-git.c') diff --git a/core/save-git.c b/core/save-git.c index 9ed315028..5d117748a 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -4,6 +4,7 @@ #pragma clang diagnostic ignored "-Wmissing-field-initializers" #endif +#include "ssrf.h" #include #include #include @@ -1021,11 +1022,11 @@ static int notify_cb(git_checkout_notify_t why, const git_diff_file *workdir, void *payload) { - (void) baseline; - (void) target; - (void) workdir; - (void) payload; - (void) why; + UNUSED(baseline); + UNUSED(target); + UNUSED(workdir); + UNUSED(payload); + UNUSED(why); report_error("File '%s' does not match in working tree", path); return 0; /* Continue with checkout */ } -- cgit v1.2.3-70-g09d2