mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
6e253fa04f
commit
061be82e31
21 changed files with 213 additions and 198 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue