From b2c13f4178222961a75ee2f2326293bca9c2d972 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 11 Mar 2017 22:08:34 +0200 Subject: qtserialbluetooth.cpp: mark qt_serial_get_transmitted() as unused The function is unused, to silence the warning add the "unused" GCC attribute to the function declaration. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- core/qtserialbluetooth.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/qtserialbluetooth.cpp') diff --git a/core/qtserialbluetooth.cpp b/core/qtserialbluetooth.cpp index 1b227cfd5..20e32f59f 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) -- cgit v1.2.3-70-g09d2