From: "Lubomir I. Ivanov" <[email protected]>

Fixes a warning. The function is only used if
DC_VERSION_CHECK(0, 5, 0) is defined.

Signed-off-by: Lubomir I. Ivanov <[email protected]>
---
 configuredivecomputerthreads.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp
index 6d6e089..e26935d 100644
--- a/configuredivecomputerthreads.cpp
+++ b/configuredivecomputerthreads.cpp
@@ -112,9 +112,11 @@ ReadSettingsThread::ReadSettingsThread(QObject *parent, 
device_data_t *data)
 
 }
 
+#if DC_VERSION_CHECK(0, 5, 0)
 static int read_ostc_cf(unsigned char data[], unsigned char cf) {
        return data[128 + (cf % 32) * 4 + 3] << 8 ^ data[128 + (cf % 32) * 4 + 
2];
 }
+#endif
 
 static void write_ostc_cf(unsigned char data[], unsigned char cf, unsigned 
char max_CF, unsigned int value) {
        // Only write settings supported by this firmware.
-- 
1.7.11.msysgit.0

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to