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:
Bart Van Assche
2021-05-23 11:40:53 -07:00
parent ea6b2282d4
commit 2a5a0b3291
33 changed files with 71 additions and 72 deletions

View File

@@ -83,7 +83,7 @@ iscsi_iser_get_fd(struct iscsi_context *iscsi)
* Being used in QEMU iscsi block so we need compatability with TCP
*/
static int
iscsi_iser_which_events(struct iscsi_context *iscsi _U_)
iscsi_iser_which_events(struct iscsi_context *iscsi)
{
/* iSER is waiting to events from CQ that are always POLLIN */
return 1;
@@ -1401,8 +1401,8 @@ no_waitpdu:
*
*/
static int
iser_snd_completion(struct iser_tx_desc *tx_desc _U_,
struct iser_conn *iser_conn _U_)
iser_snd_completion(struct iser_tx_desc *tx_desc,
struct iser_conn *iser_conn)
{
return 0;
}