From 061be82e31f0d08804cd5d0edc2244540200fcea Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Tue, 22 May 2018 09:07:42 +0200 Subject: 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 --- core/planner.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/planner.c') diff --git a/core/planner.c b/core/planner.c index f05fe119a..842a86ebf 100644 --- a/core/planner.c +++ b/core/planner.c @@ -5,6 +5,7 @@ * * (c) Dirk Hohndel 2013 */ +#include "ssrf.h" #include #include #include @@ -533,7 +534,7 @@ static int *sort_stops(int *dstops, int dnr, struct gaschanges *gstops, int gnr) int ascent_velocity(int depth, int avg_depth, int bottom_time) { - (void) bottom_time; + UNUSED(bottom_time); /* We need to make this configurable */ /* As an example (and possibly reasonable default) this is the Tech 1 provedure according -- cgit v1.2.3-70-g09d2