summaryrefslogtreecommitdiffstats
path: root/core/gaspressures.c
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@libreoffice.org>2018-05-22 09:07:42 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-24 08:34:14 -0700
commit061be82e31f0d08804cd5d0edc2244540200fcea (patch)
tree94f0e5da65bab561200f9be245e25c507d6be850 /core/gaspressures.c
parent6e253fa04f81be6fb26ff59cd5be39c85bfe3d19 (diff)
downloadsubsurface-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/gaspressures.c')
-rw-r--r--core/gaspressures.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/gaspressures.c b/core/gaspressures.c
index 98b574023..139665551 100644
--- a/core/gaspressures.c
+++ b/core/gaspressures.c
@@ -18,6 +18,7 @@
* pr_track_t is defined in gaspressures.h
*/
+#include "ssrf.h"
#include "dive.h"
#include "display.h"
#include "profile.h"
@@ -343,7 +344,7 @@ static void debug_print_pressures(struct plot_info *pi)
*/
void populate_pressure_information(struct dive *dive, struct divecomputer *dc, struct plot_info *pi, int sensor)
{
- (void) dc;
+ UNUSED(dc);
int first, last, cyl;
cylinder_t *cylinder = dive->cylinder + sensor;
pr_track_t *track = NULL;