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) _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"