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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue