svn commit: r355363 - stable/12/sys/sys

Ravi Pokala rpokala at FreeBSD.org
Tue Dec 3 22:51:26 UTC 2019


Author: rpokala
Date: Tue Dec  3 22:51:25 2019
New Revision: 355363
URL: https://svnweb.freebsd.org/changeset/base/355363

Log:
  MFC r354102:
  
  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.

Modified:
  stable/12/sys/sys/buf.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/sys/buf.h
==============================================================================
--- stable/12/sys/sys/buf.h	Tue Dec  3 22:49:24 2019	(r355362)
+++ stable/12/sys/sys/buf.h	Tue Dec  3 22:51:25 2019	(r355363)
@@ -450,7 +450,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)


More information about the svn-src-stable mailing list