[PATCH 3/4] cochran.c: mark 'ascent_rate' as unused

Lubomir I. Ivanov neolit123 at gmail.com
Tue Oct 28 04:35:15 PDT 2014


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

cochran_parse_samples():
'ascent_rate' can be used at some point so we mark it
as unused with (void)

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 cochran.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cochran.c b/cochran.c
index c0b851e..1420699 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;
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list