Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Apr 2019 03:47:54 +0000 (UTC)
From:      Mariusz Zaborski <oshogbo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r346112 - head/sys/contrib/libnv
Message-ID:  <201904110347.x3B3lsnf080894@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: oshogbo
Date: Thu Apr 11 03:47:53 2019
New Revision: 346112
URL: https://svnweb.freebsd.org/changeset/base/346112

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/nvlist.c

Modified: head/sys/contrib/libnv/nvlist.c
==============================================================================
--- head/sys/contrib/libnv/nvlist.c	Thu Apr 11 00:41:07 2019	(r346111)
+++ head/sys/contrib/libnv/nvlist.c	Thu Apr 11 03:47:53 2019	(r346112)
@@ -324,7 +324,7 @@ nvlist_set_flags(nvlist_t *nvl, int flags)
 	nvl->nvl_flags = flags;
 }
 
-void
+static void
 nvlist_report_missing(int type, const char *name)
 {
 
@@ -1374,7 +1374,7 @@ nvlist_first_nvpair(const nvlist_t *nvl)
 }
 
 nvpair_t *
-nvlist_next_nvpair(const nvlist_t *nvl, const nvpair_t *nvp)
+nvlist_next_nvpair(const nvlist_t *nvl __unused, const nvpair_t *nvp)
 {
 	nvpair_t *retnvp;
 
@@ -1390,7 +1390,7 @@ nvlist_next_nvpair(const nvlist_t *nvl, const nvpair_t
 }
 
 nvpair_t *
-nvlist_prev_nvpair(const nvlist_t *nvl, const nvpair_t *nvp)
+nvlist_prev_nvpair(const nvlist_t *nvl __unused, const nvpair_t *nvp)
 {
 	nvpair_t *retnvp;
 



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