mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6e253fa04f
commit
061be82e31
21 changed files with 213 additions and 198 deletions
|
@ -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 */
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue