core: Change Q_UNUSED to no parameter name

C++ permits use of parameters without name, which signals unused

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-05-21 17:36:04 +02:00 committed by Dirk Hohndel
parent 034f9a6ca2
commit a312e53f0c
7 changed files with 13 additions and 33 deletions

View file

@ -41,10 +41,8 @@ typedef struct qt_serial_t {
long timeout;
} qt_serial_t;
static dc_status_t qt_serial_open(qt_serial_t **io, dc_context_t *context, const char* devaddr)
static dc_status_t qt_serial_open(qt_serial_t **io, dc_context_t*, const char* devaddr)
{
Q_UNUSED(context);
// Allocate memory.
qt_serial_t *serial_port = (qt_serial_t *) malloc (sizeof (qt_serial_t));
if (serial_port == NULL) {