From a3a63d8ac2c42c11dfdb8a51bc4ec95735e2da75 Mon Sep 17 00:00:00 2001 From: Ravi Pokala Date: Fri, 25 Oct 2019 21:32:28 +0000 Subject: [PATCH] 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 --- sys/sys/buf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/buf.h b/sys/sys/buf.h index f71c88c82d4..3055cd483e6 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -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)