diff --git a/cochran.c b/cochran.c index c0b851e50..142069991 100644 --- a/cochran.c +++ b/cochran.c @@ -588,6 +588,7 @@ static void cochran_parse_samples(struct dive *dive, const unsigned char *log, offset += config.sample_size; seconds++; } + (void)ascent_rate; // mark the variable as unused if (seconds > 0) *duration = seconds - 1;