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/file.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/file.c')
-rw-r--r-- | core/file.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/file.c b/core/file.c index 69454f298..5c12c0a5d 100644 --- a/core/file.c +++ b/core/file.c @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 +#include "ssrf.h" #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> @@ -118,9 +119,9 @@ int try_to_open_zip(const char *filename) static int db_test_func(void *param, int columns, char **data, char **column) { - (void) param; - (void) columns; - (void) column; + UNUSED(param); + UNUSED(columns); + UNUSED(column); return *data[0] == '0'; } |