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@netbsd.org>
MFC after:    2 weeks
This commit is contained in:
Mariusz Zaborski 2019-04-11 04:21:58 +00:00
parent dab2264290
commit a1742a5883
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346113

View File

@ -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 *ptr, size_t *leftp)
}
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)
{