[PATCH 4/4] qtserialbluetooth.cpp: mark qt_serial_get_transmitted() as unused
Lubomir I. Ivanov
neolit123 at gmail.com
Sat Mar 11 12:08:34 PST 2017
From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
The function is unused, to silence the warning add the "unused"
GCC attribute to the function declaration.
Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
core/qtserialbluetooth.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/core/qtserialbluetooth.cpp b/core/qtserialbluetooth.cpp
index 1b227cf..20e32f5 100644
--- a/core/qtserialbluetooth.cpp
+++ b/core/qtserialbluetooth.cpp
@@ -346,6 +346,9 @@ static dc_status_t qt_serial_get_received(void **userdata, size_t *available)
return DC_STATUS_SUCCESS;
}
+/* UNUSED! */
+static int qt_serial_get_transmitted(qt_serial_t *device) __attribute__ ((unused));
+
static int qt_serial_get_transmitted(qt_serial_t *device)
{
#if defined(Q_OS_WIN)
--
1.7.11.msysgit.0
More information about the subsurface
mailing list