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:
jan Iversen 2018-05-22 09:07:42 +02:00 committed by Dirk Hohndel
parent 6e253fa04f
commit 061be82e31
21 changed files with 213 additions and 198 deletions

View file

@ -1,4 +1,5 @@
// SPDX-License-Identifier: GPL-2.0
#include "ssrf.h"
#include <string.h>
#include "dive.h"
#include "subsurface-string.h"
@ -192,7 +193,7 @@ static void match_id(void *_dc, const char *model, uint32_t deviceid,
const char *nickname, const char *serial, const char *firmware)
{
// here nickname is unused
(void)nickname;
UNUSED(nickname);
struct divecomputer *dc = _dc;