diff options
author | jan Iversen <jani@libreoffice.org> | 2018-05-22 09:07:42 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-05-24 08:34:14 -0700 |
commit | 061be82e31f0d08804cd5d0edc2244540200fcea (patch) | |
tree | 94f0e5da65bab561200f9be245e25c507d6be850 /core/deco.c | |
parent | 6e253fa04f81be6fb26ff59cd5be39c85bfe3d19 (diff) | |
download | subsurface-061be82e31f0d08804cd5d0edc2244540200fcea.tar.gz |
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>
Diffstat (limited to 'core/deco.c')
-rw-r--r-- | core/deco.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/deco.c b/core/deco.c index 5daa45cca..e8bafd426 100644 --- a/core/deco.c +++ b/core/deco.c @@ -17,6 +17,7 @@ * restore_deco_state() * dump_tissues() */ +#include "ssrf.h" #include <math.h> #include <string.h> #include "dive.h" @@ -480,7 +481,7 @@ void calc_crushing_pressure(struct deco_state *ds, double pressure) /* add period_in_seconds at the given pressure and gas to the deco calculation */ void add_segment(struct deco_state *ds, double pressure, const struct gasmix *gasmix, int period_in_seconds, int ccpo2, enum divemode_t divemode, int sac) { - (void) sac; + UNUSED(sac); int ci; struct gas_pressures pressures; bool icd = false; |