aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sfxge/common/efx_lic.c
diff options
context:
space:
mode:
authorAndrew Rybchenko <arybchik@FreeBSD.org>2018-11-24 16:30:09 +0000
committerAndrew Rybchenko <arybchik@FreeBSD.org>2018-11-24 16:30:09 +0000
commitbbea9604340a2377713c9853a600994845dabc1f (patch)
treedfe992e412cbe6cb715c43c7d422e00ac457f9ee /sys/dev/sfxge/common/efx_lic.c
parent54bee5b4fd2f17f88d30ff4af19db73d0e837c0d (diff)
downloadsrc-bbea9604340a2377713c9853a600994845dabc1f.tar.gz
src-bbea9604340a2377713c9853a600994845dabc1f.zip
sfxge(4): fix warnings from VS2015 C compiler (C4100)
Fix multiple level 4 warnings "C4100: 'xxx': unreferenced formal parameter" no functional changes. The _NOTE(ARGUNUSED(xxx)) annotations are being exposed to the Visual Studio 2015 C compiler with the following: #define _NOTE_ARGUNUSED(...) UNREFERENCED_PARAMETER((__VA_ARGS__)); #define _NOTE(_annotation) _NOTE_ ## _annotation Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D18122
Notes
Notes: svn path=/head/; revision=340888
Diffstat (limited to 'sys/dev/sfxge/common/efx_lic.c')
-rw-r--r--sys/dev/sfxge/common/efx_lic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sfxge/common/efx_lic.c b/sys/dev/sfxge/common/efx_lic.c
index 5c8795e12843..4421d4481de7 100644
--- a/sys/dev/sfxge/common/efx_lic.c
+++ b/sys/dev/sfxge/common/efx_lic.c
@@ -564,7 +564,7 @@ efx_lic_v1v2_read_key(
{
efx_rc_t rc;
- _NOTE(ARGUNUSED(enp))
+ _NOTE(ARGUNUSED(enp, buffer_size))
EFSYS_ASSERT(length <= (EFX_LICENSE_V1V2_PAYLOAD_LENGTH_MAX +
EFX_LICENSE_V1V2_HEADER_LENGTH));
@@ -634,7 +634,7 @@ efx_lic_v1v2_delete_key(
uint32_t move_start = offset + length;
uint32_t move_length = end - move_start;
- _NOTE(ARGUNUSED(enp))
+ _NOTE(ARGUNUSED(enp, buffer_size))
EFSYS_ASSERT(end <= buffer_size);
/* Shift everything after the key down */
@@ -652,7 +652,7 @@ efx_lic_v1v2_create_partition(
caddr_t bufferp,
__in size_t buffer_size)
{
- _NOTE(ARGUNUSED(enp))
+ _NOTE(ARGUNUSED(enp, buffer_size))
EFSYS_ASSERT(EFX_LICENSE_V1V2_HEADER_LENGTH <= buffer_size);
/* Write terminator */