From 12b4f2235ba3c1443835be3d3bba1fe608593980 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Mon, 21 May 2018 21:05:26 +0200 Subject: core: replace (void) with no parameter name Unused parameters in C++ are "silenced" by removing the name. Signed-off-by: Jan Iversen --- core/qtserialbluetooth.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/qtserialbluetooth.cpp b/core/qtserialbluetooth.cpp index 962602b42..71a76187f 100644 --- a/core/qtserialbluetooth.cpp +++ b/core/qtserialbluetooth.cpp @@ -327,11 +327,10 @@ static dc_status_t qt_serial_write(void *io, const void* data, size_t size, size return DC_STATUS_SUCCESS; } -static dc_status_t qt_serial_purge(void *io, dc_direction_t queue) +static dc_status_t qt_serial_purge(void *io, dc_direction_t) { qt_serial_t *device = (qt_serial_t*) io; - (void)queue; if (device == NULL) return DC_STATUS_INVALIDARGS; #if !defined(Q_OS_WIN) -- cgit v1.2.3-70-g09d2