Author: rpokala
Date: Fri Oct 25 21:32:28 2019
New Revision: 354102
URL: https://svnweb.freebsd.org/changeset/base/354102

Log:
  Args for buf_track() might be unused
  
  If neither FULL_BUF_TRACKING nor BUF_TRACKING are defined, then the body of
  buf_track() becomes empty. Mark the arguments with "__unused" so the
  compiler doesn't complain about unused arguments in that case.
  
  Reported by:  Bruce Leverett (Panasas)
  Reviewed by:  cem (on IRC)
  MFC after:    1 month
  Sponsored by: Panasas

Modified:
  head/sys/sys/buf.h

Modified: head/sys/sys/buf.h
==============================================================================
--- head/sys/sys/buf.h  Fri Oct 25 21:23:44 2019        (r354101)
+++ head/sys/sys/buf.h  Fri Oct 25 21:32:28 2019        (r354102)
@@ -457,7 +457,7 @@ buf_countdeps(struct buf *bp, int i)
 }
 
 static __inline void
-buf_track(struct buf *bp, const char *location)
+buf_track(struct buf *bp __unused, const char *location __unused)
 {
 
 #if defined(FULL_BUF_TRACKING)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to