Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:06:44 -0000
From:      Mariusz Zaborski <oshogbo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r346113 - head/sys/contrib/libnv
Message-ID:  <201904110421.x3B4Lxpf001148@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: oshogbo
Date: Thu Apr 11 04:21:58 2019
New Revision: 346113
URL: https://svnweb.freebsd.org/changeset/base/346113

Log:
  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

Modified:
  head/sys/contrib/libnv/nvpair.c

Modified: head/sys/contrib/libnv/nvpair.c
==============================================================================
--- head/sys/contrib/libnv/nvpair.c	Thu Apr 11 03:47:53 2019	(r346112)
+++ head/sys/contrib/libnv/nvpair.c	Thu Apr 11 04:21:58 2019	(r346113)
@@ -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)
 {
 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904110421.x3B4Lxpf001148>