From 4e36b2509ce1dc98724282a3e485a20ebacb17e3 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Mon, 27 Nov 2017 12:33:17 +0100 Subject: Compile dump_tissues function only if needed based on define Compile it only when DECO_CALC_DEBUG is defined. Signed-off-by: Stefan Fuchs --- core/deco.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/deco.c b/core/deco.c index c104205d8..44103cb47 100644 --- a/core/deco.c +++ b/core/deco.c @@ -506,6 +506,7 @@ void add_segment(struct deco_state *ds, double pressure, const struct gasmix *ga return; } +#if DECO_CALC_DEBUG void dump_tissues(struct deco_state *ds) { int ci; @@ -517,6 +518,7 @@ void dump_tissues(struct deco_state *ds) printf(" %6.3e", ds->tissue_he_sat[ci]); printf("\n"); } +#endif void clear_vpmb_state(struct deco_state *ds) { int ci; -- cgit v1.2.3-70-g09d2