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

@ -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;