core: replace (void) with no parameter name

Unused parameters in C++ are "silenced" by removing the name.

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-05-21 21:05:26 +02:00 committed by Dirk Hohndel
parent 99acff1b05
commit 12b4f2235b

View file

@ -327,11 +327,10 @@ static dc_status_t qt_serial_write(void *io, const void* data, size_t size, size
return DC_STATUS_SUCCESS; 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; qt_serial_t *device = (qt_serial_t*) io;
(void)queue;
if (device == NULL) if (device == NULL)
return DC_STATUS_INVALIDARGS; return DC_STATUS_INVALIDARGS;
#if !defined(Q_OS_WIN) #if !defined(Q_OS_WIN)