Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Sep 2021 18:30:37 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0def501d143a - main - mana: Cast an unused value to void to quiet a warning.
Message-ID:  <202109251830.18PIUbSJ002387@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=0def501d143a84714eed0a431d35c43d30546802

commit 0def501d143a84714eed0a431d35c43d30546802
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-09-25 18:28:14 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-09-25 18:28:14 +0000

    mana: Cast an unused value to void to quiet a warning.
    
    This appeases a -Wunused-value warning from GCC 9.
    
    Reviewed by:    whu
    Differential Revision:  https://reviews.freebsd.org/D31948
---
 sys/dev/mana/mana_en.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/mana/mana_en.c b/sys/dev/mana/mana_en.c
index ffeee336f694..5b680f146476 100644
--- a/sys/dev/mana/mana_en.c
+++ b/sys/dev/mana/mana_en.c
@@ -576,7 +576,7 @@ mana_xmit(struct mana_txq *txq)
 		next_to_use =
 		    (next_to_use + 1) % MAX_SEND_BUFFERS_PER_QUEUE;
 
-		atomic_inc_return(&txq->pending_sends);
+		(void)atomic_inc_return(&txq->pending_sends);
 
 		drbr_advance(ndev, txq->txq_br);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109251830.18PIUbSJ002387>