svn commit: r346907 - stable/11/sys/contrib/libnv
Mariusz Zaborski
oshogbo at FreeBSD.org
Mon Apr 29 18:55:50 UTC 2019
Author: oshogbo
Date: Mon Apr 29 18:55:49 2019
New Revision: 346907
URL: https://svnweb.freebsd.org/changeset/base/346907
Log:
MFC r346113:
libnv: fix compilation warnings
When building libnv without a debug those arguments are no longer used
because assertions will be changed to NOP.
Submitted by: Mindaugas Rasiukevicius <rmind at netbsd.org>
Modified:
stable/11/sys/contrib/libnv/nvpair.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/contrib/libnv/nvpair.c
==============================================================================
--- stable/11/sys/contrib/libnv/nvpair.c Mon Apr 29 18:54:39 2019 (r346906)
+++ stable/11/sys/contrib/libnv/nvpair.c Mon Apr 29 18:55:49 2019 (r346907)
@@ -106,7 +106,7 @@ struct nvpair_header {
void
-nvpair_assert(const nvpair_t *nvp)
+nvpair_assert(const nvpair_t *nvp __unused)
{
NVPAIR_ASSERT(nvp);
@@ -233,7 +233,8 @@ nvpair_remove_nvlist_array(nvpair_t *nvp)
}
void
-nvpair_remove(struct nvl_head *head, nvpair_t *nvp, const nvlist_t *nvl)
+nvpair_remove(struct nvl_head *head, nvpair_t *nvp,
+ const nvlist_t *nvl __unused)
{
NVPAIR_ASSERT(nvp);
@@ -357,7 +358,7 @@ nvpair_pack_header(const nvpair_t *nvp, unsigned char
}
unsigned char *
-nvpair_pack_null(const nvpair_t *nvp, unsigned char *ptr,
+nvpair_pack_null(const nvpair_t *nvp __unused, unsigned char *ptr,
size_t *leftp __unused)
{
More information about the svn-src-all
mailing list