diff options
author | jan Iversen <jani@libreoffice.org> | 2018-05-22 09:07:42 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-05-24 08:34:14 -0700 |
commit | 061be82e31f0d08804cd5d0edc2244540200fcea (patch) | |
tree | 94f0e5da65bab561200f9be245e25c507d6be850 /core/save-git.c | |
parent | 6e253fa04f81be6fb26ff59cd5be39c85bfe3d19 (diff) | |
download | subsurface-061be82e31f0d08804cd5d0edc2244540200fcea.tar.gz |
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 <jani@apache.org>
Diffstat (limited to 'core/save-git.c')
-rw-r--r-- | core/save-git.c | 11 |
1 files changed, 6 insertions, 5 deletions
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 <stdio.h> #include <ctype.h> #include <string.h> @@ -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 */ } |