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,3 +1,4 @@
#include "ssrf.h"
#include <stdio.h>
#include <assert.h>
#include <stdarg.h>
@ -195,7 +196,7 @@ bool is_dive(void)
void reset_dc_info(struct divecomputer *dc)
{
/* WARN: reset dc info does't touch the dc? */
(void) dc;
UNUSED(dc);
lastcylinderindex = 0;
}