mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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:
parent
145bad4026
commit
a3a63d8ac2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue