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,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
/* linux.c */
/* implements Linux specific functions */
#include "ssrf.h"
#include "dive.h"
#include "subsurface-string.h"
#include "display.h"
@ -22,7 +23,7 @@ double system_divelist_default_font_size = -1.0;
bool subsurface_ignore_font(const char *font)
{
// there are no old default fonts to ignore
(void)font;
UNUSED(font);
return false;
}