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
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue