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/cochran.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/cochran.c')
-rw-r--r-- | core/cochran.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/cochran.c b/core/cochran.c index f447a846a..a8f008c4c 100644 --- a/core/cochran.c +++ b/core/cochran.c @@ -4,6 +4,7 @@ #pragma clang diagnostic ignored "-Wmissing-field-initializers" #endif +#include "ssrf.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -592,7 +593,7 @@ static void cochran_parse_samples(struct dive *dive, const unsigned char *log, offset += config.sample_size; sample_cnt++; } - (void)ascent_rate; // mark the variable as unused + UNUSED(ascent_rate); // mark the variable as unused if (sample_cnt > 0) *duration = sample_cnt * profile_period - 1; @@ -792,7 +793,7 @@ static void cochran_parse_dive(const unsigned char *decode, unsigned mod, int try_to_open_cochran(const char *filename, struct memblock *mem) { - (void) filename; + UNUSED(filename); unsigned int i; unsigned int mod; unsigned int *offsets, dive1, dive2; |