Fix some unused warnings
This commit is contained in:
parent
634b965029
commit
e56a2ae17f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: filemon_dev.c,v 1.8 2021/02/01 21:09:25 rillig Exp $ */
|
||||
/* $NetBSD: filemon_dev.c,v 1.9 2022/03/04 23:17:16 sjg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2020 The NetBSD Foundation, Inc.
|
||||
|
@ -46,6 +46,10 @@
|
|||
#define _PATH_FILEMON "/dev/filemon"
|
||||
#endif
|
||||
|
||||
#ifndef MAKE_ATTR_UNUSED
|
||||
#define MAKE_ATTR_UNUSED __attribute__((__unused__))
|
||||
#endif
|
||||
|
||||
struct filemon {
|
||||
int fd;
|
||||
};
|
||||
|
@ -101,7 +105,7 @@ filemon_setfd(struct filemon *F, int fd)
|
|||
}
|
||||
|
||||
void
|
||||
filemon_setpid_parent(struct filemon *F, pid_t pid)
|
||||
filemon_setpid_parent(struct filemon *F MAKE_ATTR_UNUSED, pid_t pid MAKE_ATTR_UNUSED)
|
||||
{
|
||||
/* Nothing to do! */
|
||||
}
|
||||
|
@ -137,14 +141,14 @@ filemon_close(struct filemon *F)
|
|||
}
|
||||
|
||||
int
|
||||
filemon_readfd(const struct filemon *F)
|
||||
filemon_readfd(const struct filemon *F MAKE_ATTR_UNUSED)
|
||||
{
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
int
|
||||
filemon_process(struct filemon *F)
|
||||
filemon_process(struct filemon *F MAKE_ATTR_UNUSED)
|
||||
{
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: meta.c,v 1.198 2022/02/09 21:28:57 rillig Exp $ */
|
||||
/* $NetBSD: meta.c,v 1.199 2022/03/04 23:17:16 sjg Exp $ */
|
||||
|
||||
/*
|
||||
* Implement 'meta' mode.
|
||||
|
@ -668,7 +668,7 @@ meta_job_start(Job *job, GNode *gn)
|
|||
* It does not disturb our state.
|
||||
*/
|
||||
void
|
||||
meta_job_child(Job *job)
|
||||
meta_job_child(Job *job MAKE_ATTR_UNUSED)
|
||||
{
|
||||
#ifdef USE_FILEMON
|
||||
BuildMon *pbm;
|
||||
|
@ -693,7 +693,7 @@ meta_job_child(Job *job)
|
|||
}
|
||||
|
||||
void
|
||||
meta_job_parent(Job *job, pid_t pid)
|
||||
meta_job_parent(Job *job MAKE_ATTR_UNUSED, pid_t pid MAKE_ATTR_UNUSED)
|
||||
{
|
||||
#if defined(USE_FILEMON) && !defined(USE_FILEMON_DEV)
|
||||
BuildMon *pbm;
|
||||
|
@ -710,7 +710,7 @@ meta_job_parent(Job *job, pid_t pid)
|
|||
}
|
||||
|
||||
int
|
||||
meta_job_fd(Job *job)
|
||||
meta_job_fd(Job *job MAKE_ATTR_UNUSED)
|
||||
{
|
||||
#if defined(USE_FILEMON) && !defined(USE_FILEMON_DEV)
|
||||
BuildMon *pbm;
|
||||
|
@ -728,7 +728,7 @@ meta_job_fd(Job *job)
|
|||
}
|
||||
|
||||
int
|
||||
meta_job_event(Job *job)
|
||||
meta_job_event(Job *job MAKE_ATTR_UNUSED)
|
||||
{
|
||||
#if defined(USE_FILEMON) && !defined(USE_FILEMON_DEV)
|
||||
BuildMon *pbm;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: suff.c,v 1.365 2022/03/03 19:55:27 rillig Exp $ */
|
||||
/* $NetBSD: suff.c,v 1.366 2022/03/04 23:17:16 sjg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
|
@ -115,7 +115,7 @@
|
|||
#include "dir.h"
|
||||
|
||||
/* "@(#)suff.c 8.4 (Berkeley) 3/21/94" */
|
||||
MAKE_RCSID("$NetBSD: suff.c,v 1.365 2022/03/03 19:55:27 rillig Exp $");
|
||||
MAKE_RCSID("$NetBSD: suff.c,v 1.366 2022/03/04 23:17:16 sjg Exp $");
|
||||
|
||||
typedef List SuffixList;
|
||||
typedef ListNode SuffixListNode;
|
||||
|
@ -1019,7 +1019,7 @@ Candidate_New(char *name, char *prefix, Suffix *suff, Candidate *parent,
|
|||
/*ARGSUSED*/
|
||||
static void
|
||||
CandidateList_Add(CandidateList *list, char *srcName, Candidate *targ,
|
||||
Suffix *suff, const char *debug_tag)
|
||||
Suffix *suff, const char *debug_tag MAKE_ATTR_UNUSED)
|
||||
{
|
||||
Candidate *cand = Candidate_New(srcName, targ->prefix, suff, targ,
|
||||
NULL);
|
||||
|
|
Loading…
Reference in New Issue