Enable -Wno-unused-parameter
Instead of adding __attribute__((unused)) to unused arguments, add the -Wno-unused-parameter compiler flag. Signed-off-by: Bart Van Assche <bvanassche@acm.org>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
AM_CPPFLAGS=-I. -I${srcdir}/../include \
|
||||
"-D_U_=__attribute__((unused)) "
|
||||
AM_CPPFLAGS=-I. -I${srcdir}/../include
|
||||
AM_CFLAGS=$(WARN_CFLAGS)
|
||||
AM_LDFLAGS=-no-undefined
|
||||
LIBS = ../lib/libiscsipriv.la
|
||||
|
||||
@@ -57,7 +57,7 @@ test_iscsi_nop_txrx(struct test_iscsi_nop_state *state)
|
||||
}
|
||||
|
||||
static void
|
||||
test_iscsi_nop_cb(struct iscsi_context *iscsi _U_, int status,
|
||||
test_iscsi_nop_cb(struct iscsi_context *iscsi, int status,
|
||||
void *command_data, void *private_data)
|
||||
{
|
||||
struct test_iscsi_nop_state *state = private_data;
|
||||
|
||||
@@ -59,8 +59,8 @@ test_iscsi_sendtargets_txrx(struct test_iscsi_sendtargets_state *state)
|
||||
}
|
||||
|
||||
static void
|
||||
test_iscsi_sendtargets_cb(struct iscsi_context *iscsi _U_, int status,
|
||||
void *command_data _U_, void *private_data)
|
||||
test_iscsi_sendtargets_cb(struct iscsi_context *iscsi, int status,
|
||||
void *command_data, void *private_data)
|
||||
{
|
||||
struct test_iscsi_sendtargets_state *state = private_data;
|
||||
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
#include "scsi-lowlevel.h"
|
||||
#include "iscsi-test-cu.h"
|
||||
|
||||
static void sanitize_cb(struct iscsi_context *iscsi _U_, int status _U_,
|
||||
void *command_data _U_, void *private_data _U_)
|
||||
static void sanitize_cb(struct iscsi_context *iscsi, int status,
|
||||
void *command_data, void *private_data)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user