Date: Tue, 19 Apr 2022 12:46:11 GMT From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 19447fc48883 - main - sfxge: plug set-but-not-used vars Message-ID: <202204191246.23JCkB3c030558@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=19447fc4888379e539dfca7e4c62362d6c279357 commit 19447fc4888379e539dfca7e4c62362d6c279357 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-04-19 12:44:12 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-04-19 12:45:57 +0000 sfxge: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/sfxge/common/efx_mcdi.c | 4 ++++ sys/dev/sfxge/common/siena_phy.c | 1 + 2 files changed, 5 insertions(+) diff --git a/sys/dev/sfxge/common/efx_mcdi.c b/sys/dev/sfxge/common/efx_mcdi.c index 3f4f8882d010..9d7728ba82c1 100644 --- a/sys/dev/sfxge/common/efx_mcdi.c +++ b/sys/dev/sfxge/common/efx_mcdi.c @@ -1179,7 +1179,11 @@ efx_mcdi_read_assertion( efx_mcdi_req_t req; EFX_MCDI_DECLARE_BUF(payload, MC_CMD_GET_ASSERTS_IN_LEN, MC_CMD_GET_ASSERTS_OUT_LEN); +#ifdef KDTRACE_HOOKS const char *reason; +#else + const char *reason __unused; +#endif unsigned int flags; unsigned int index; unsigned int ofst; diff --git a/sys/dev/sfxge/common/siena_phy.c b/sys/dev/sfxge/common/siena_phy.c index 3a4b51831396..4f2529b9a1f8 100644 --- a/sys/dev/sfxge/common/siena_phy.c +++ b/sys/dev/sfxge/common/siena_phy.c @@ -586,6 +586,7 @@ siena_phy_stats_update( siena_phy_decode_stats(enp, vmask, esmp, &smask, stat); EFSYS_ASSERT(smask == encp->enc_phy_stat_mask); + (void)rc; /* XXX? */ return (0); fail2:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204191246.23JCkB3c030558>