svn commit: r346908 - stable/12/sys/contrib/libnv
Mariusz Zaborski
oshogbo at FreeBSD.org
Mon Apr 29 18:56:40 UTC 2019
Author: oshogbo
Date: Mon Apr 29 18:56:39 2019
New Revision: 346908
URL: https://svnweb.freebsd.org/changeset/base/346908
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/12/sys/contrib/libnv/nvpair.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/contrib/libnv/nvpair.c
==============================================================================
--- stable/12/sys/contrib/libnv/nvpair.c Mon Apr 29 18:55:49 2019 (r346907)
+++ stable/12/sys/contrib/libnv/nvpair.c Mon Apr 29 18:56:39 2019 (r346908)
@@ -108,7 +108,7 @@ struct nvpair_header {
void
-nvpair_assert(const nvpair_t *nvp)
+nvpair_assert(const nvpair_t *nvp __unused)
{
NVPAIR_ASSERT(nvp);
@@ -235,7 +235,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);
@@ -359,7 +360,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