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
This commit is contained in:
Ravi Pokala 2019-10-25 21:32:28 +00:00
parent 145bad4026
commit a3a63d8ac2

View file

@ -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)