PROG= csh
DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"'
CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS}
+CFLAGS+= -Wno-unused-but-set-variable
SRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \
void
HLP(int u __unused)
{
- char c;
-
string_print(enter_string);
string_print(help_string);
flush();
- c=getchar();
+ getchar();
RD(0);
return;
}
GENHDRS= builtins.h nodes.h syntax.h token.h
SRCS= ${SHSRCS} ${GENSRCS} ${GENHDRS}
+WARNS?= 3
+
# MLINKS for Shell built in commands for which there are no userland
# utilities of the same name are handled with the associated manpage,
# builtin.1 in share/man/man1/.
{
u_char *blob, *data, *signature = NULL;
u_int blen, dlen, slen = 0;
- int ok = -1, flags, ret;
+ int ok = -1, ret;
+ int __unused flags;
Key *key, *found;
Buffer msg;
{
extern char **environ;
const char *display;
- int interactive = tty_flag;
+ int __unused interactive = tty_flag;
if (!success)
return; /* No need for error message, channels code sens one */
struct dirent **dire;
struct stat status;
int i, j, nb;
- long d;
+ long __unused d;
getcwd(cwd, MAXPATHLEN);
*/
static void print_line(WINDOW *win, int row, int width)
{
- int i, y, x;
+ int i, __unused y, x;
unsigned char *line;
line = get_line();
char *
kgdb_thr_extra_thread_info(int tid)
{
+#if 0 /* XXX: Doesn't do anything, obsolete? */
struct kthr *kt;
static char buf[64];
return (NULL);
buf[0] = 0;
-
+#endif
return (NULL);
}
char const *filename;
unsigned char const *p;
{
- unsigned char volatile t;
+ unsigned char volatile __unused t;
accessName = filename;
t = *p;
accessName = 0;
static u_char *AliasHandleName ( u_char *p, char *pmax ) {
u_char *s;
+#ifdef DEBUG
u_char c;
+#endif
int compress;
/* Following length field */
#endif
while (s < p) {
if ( compress == 1 ) {
- c = (u_char )(((((*s & 0x0f) << 4) | (*(s+1) & 0x0f)) - 0x11));
#ifdef DEBUG
+ c = (u_char )(((((*s & 0x0f) << 4) | (*(s+1) & 0x0f)) - 0x11));
if (isprint( c ) )
printf("%c", c );
else
{
int error;
size_t dssize;
- int oldnumdevs;
long oldgeneration;
int retval = 0;
struct devinfo *dinfo;
return(-1);
}
- oldnumdevs = dinfo->numdevs;
oldgeneration = dinfo->generation;
/*
NOMAN=
+WARNS= 3
+
.include <bsd.lib.mk>
_evtr_next_event(evtr_t evtr, evtr_event_t ev, struct evtr_query *q)
{
char buf[MAX_EVHDR_SIZE];
- int ret, err, ntried, nmatched;
+ int ret, err;
struct trace_event_header *evhdr = (struct trace_event_header *)buf;
for (ret = 0; !ret;) {
return feof(evtr->f) ? -1 : !0;
switch (evhdr->type) {
case EVTR_TYPE_PROBE:
- ntried = q->ntried;
- nmatched = q->nmatched;
if ((err = evtr_load_probe(evtr, ev, buf, q))) {
if (err == -1) {
/* no match */
.PATH: ${LDNS} ${LDNS}/compat
CFLAGS+= -I${.CURDIR} -I${LDNS}
+CFLAGS+= -Wno-unused-but-set-variable
#CLEANFILES= bsdxml.h bsdxml_external.h
WARNS?= 2
int
ncp_open_rcfile(void) {
char *home, *fn;
- int error;
+ int __unused error;
home = getenv("HOME");
if (home) {
CFLAGS+= -DOPENPAM_MODULES_DIR='"${MODULE_DIR}/"'
CFLAGS+= -I${SRCDIR}/lib -I${SRCDIR}/include -I${.CURDIR}
+WARNS= 3
+
# Dist files
SRCS= openpam_borrow_cred.c \
openpam_check_owner_perms.c \
CFLAGS+=-I${SENDMAIL_DIR}/sendmail -I${SENDMAIL_DIR}/include -I.
CFLAGS+=-DNEWDB -DNOT_SENDMAIL
+CFLAGS+=-Wno-unused-but-set-variable
# User customizations to the sendmail build environment
CFLAGS+=${SENDMAIL_CFLAGS}
{
struct file *fp = (struct file *)f->f_fsdata;
struct iso_directory_record *ep;
- size_t buf_size, reclen, namelen;
+ size_t buf_size, namelen;
int error = 0;
int lenskip;
char *buf, *name;
}
}
}
- reclen = _DIRENT_RECLEN(namelen);
d->d_ino = isonum_733(ep->extent);
if (isonum_711(ep->flags) & 2)
struct netif *
netif_select(void *machdep_hint)
{
- int d, u, unit_done, s;
+ int d, u, s;
struct netif_driver *drv;
struct netif cur_if;
static struct netif best_if;
for (u = 0; u < drv->netif_nifs; u++) {
cur_if.nif_unit = u;
- unit_done = 0;
#ifdef NETIF_DEBUG
if (netif_debug)
struct nfs_readdir_off *roff = NULL;
static char *buf;
static n_long cookie = 0;
- size_t cc;
n_long eof;
struct {
args->cookie = htonl(cookie);
args->count = htonl(NFS_READDIRSIZE);
- cc = rpc_call(fp->iodesc, NFS_PROG, NFS_VER2, NFSPROC_READDIR,
+ rpc_call(fp->iodesc, NFS_PROG, NFS_VER2, NFSPROC_READDIR,
args, sizeof(*args),
rdata.d, sizeof(rdata.d));
buf = rdata.d;
static int
tftp_stat(struct open_file *f, struct stat *sb)
{
- struct tftp_handle *tftpfile;
+ struct tftp_handle __unused *tftpfile;
tftpfile = (struct tftp_handle *) f->f_fsdata;
sb->st_mode = 0444 | S_IFREG;
{
struct safe_mem_hdr *hdr;
char *mem;
- int ok;
+ int __unused ok;
if (safe_mem_hdr_first == NULL)
return;
_tcb_ctor(struct pthread *thread, int initial)
{
struct tls_tcb *tcb;
- int flags;
-
- flags = 0;
if (initial)
tcb = tls_get_tcb();
_tcb_ctor(struct pthread *thread, int initial)
{
struct tls_tcb *tcb;
- int flags;
-
- flags = 0;
if (initial)
tcb = tls_get_tcb();
char cmdbuf[NCARGS+1], locuser[16], remuser[16];
char fromhost[2 * MAXHOSTNAMELEN + 1];
char numericname[INET6_ADDRSTRLEN];
- int af = fromp->su_family, err;
+ int af = fromp->su_family, __unused err;
#ifdef CRYPT
int rc;
int pv1[2], pv2[2];
void
doit(struct sockaddr *who)
{
- int err_; /* XXX */
+ int __unused err_; /* XXX */
int ptynum;
/*
MAN= ypxfr.8
CFLAGS+= -I.
+CFLAGS+= -Wno-enum-compare
DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc
if ( ns ) {
int c1;
- int nr;
+ int __unused nr;
nr = read ( fileno(stdin), &c1, 1 );
c1 &= 0xff;
parse_oids ( Snmp_Header *h, u_char **bp )
{
int len = h->varlen;
- int sublen;
+ int __unused sublen;
Variable *var;
u_char *bufp = *bp;
* Loop forever
*/
for ( ; ; ) {
- int count;
+ int __unused count;
int n;
u_char *bpp;
Snmp_Header *Hdr;
if (spi && syncrate != -1) {
int prelim_sync_period;
- u_int freq;
+ u_int __unused freq;
if ((cpi.hba_inquiry & PI_SDTR_ABLE) == 0) {
warnx("HBA at %s%d is not cable of changing "
RPL_LUNDATA_LUN_LUN_MASK);
break;
case RPL_LUNDATA_ATYP_EXTLUN: {
- int field_len, field_len_code, eam_code;
+ int __unused field_len;
+ int field_len_code, eam_code;
eam_code = lundata->luns[i].lundata[j] &
RPL_LUNDATA_EXT_EAM_MASK;
int retry_count, int timeout)
{
u_int8_t data[MAX_COMMAND_SIZE];/* Buffer to hold sense data. */
- u_int8_t *mode_pars; /* Pointer to modepage params. */
+ u_int8_t __unused *mode_pars; /* Pointer to modepage params. */
struct scsi_mode_header_6 *mh; /* Location of mode header. */
struct scsi_mode_page_header *mph;
struct pagename *nameentry;
static char *
resolve_ccdname(char *name)
{
- char c, *path;
+ char *path;
+#if 0
+ char c;
size_t len;
+#endif
if (name[0] == '/' || name[0] == '.') {
/* Assume they gave the correct pathname. */
return (strdup(name));
}
+#if 0
len = strlen(name);
if (len > 0)
c = name[len - 1];
else
c = '\0';
+#endif
asprintf(&path, "%s%s", _PATH_DEV, name);
{
struct safe_mem_hdr *hdr;
char *mem;
- int ok;
+ int __unused ok;
if (safe_mem_hdr_first == NULL)
return;
int
main(int argc, char **argv)
{
- char *device, *special, *cp;
+ char *device, *special, __unused *cp;
char ch;
size_t len;
struct stat st;
static ssize_t oldibufsize = 0;
ssize_t ibufsize;
struct fs *sblock;
- ino_t inumber, maxino;
+ ino_t inumber, __unused maxino;
daddr_t dblk;
char sbuf[SBSIZE], sbuftmp[SBSIZE];
int devfd, n, cg;
main(int argc, char **argv)
{
struct partinfo pinfo;
- char *device, *special, *cp;
+ char *device, *special, __unused *cp;
char ch;
unsigned int size=0;
size_t len;
int64_t usedbigblocks;
int64_t usedbytes, rsvbytes;
int64_t totalbytes, freebytes;
- int error;
char *fsid;
char buf[6];
- u_int32_t sc;
fsid = NULL;
usedbigblocks = 0;
usedbytes = totalbytes = rsvbytes = freebytes = 0;
- sc = error = 0;
hvi = libhammer_get_volinfo(path);
if (hvi == NULL) {
main(int argc, char **argv)
{
static const char *hints_file;
- int c, nostd = 0, justread = 0, merge = 0, rescan = 0;
+ int c, justread = 0, merge = 0, rescan = 0;
+ int __unused nostd = 0;
if (argc > 1 && strcmp(argv[1], "-elf") == 0) {
/* skip over legacy -elf arg */
{
struct passwd *pw;
char *buf;
- int error;
+ int __unused error;
int len;
error = 0;
{
struct ufs_args args;
int ch, mntflags;
- char *fs_name, *options, mntpath[MAXPATHLEN];
+ char *fs_name, mntpath[MAXPATHLEN];
struct vfsconf vfc;
int error;
- options = NULL;
mntflags = 0;
while ((ch = getopt(argc, argv, "o:")) != -1)
switch (ch) {
{
struct passwd *pw;
char *buf;
- int error;
+ int __unused error;
int len;
error = 0;
struct fhreturn fhr;
struct stat stb;
struct statfs fsb;
- struct addrinfo *ai;
char host[NI_MAXHOST], numerichost[NI_MAXHOST];
int lookup_failed = 1;
struct sockaddr *saddr;
NULL, 0, 0);
getnameinfo(saddr, saddr->sa_len, numerichost,
sizeof numerichost, NULL, 0, NI_NUMERICHOST);
- ai = NULL;
switch (rqstp->rq_proc) {
case NULLPROC:
if (!svc_sendreply(transp, (xdrproc_t)xdr_void, NULL))
struct OptionInfo* info;
int yesNoValue;
int aliasValue;
- int numValue;
+ int __unused numValue;
u_short uNumValue;
const char* strValue;
struct in_addr addrValue;
{
struct ufs1_dinode inobuf[MAXINOPB];
daddr_t d;
- int c;
+ int __unused c;
#ifdef FSIRAND
ip->di_gen = random();
PROG= ping6
MAN= ping6.8
+WARNS?= 3
+
CFLAGS+=-DINET6 -DIPSEC -DHAVE_POLL_H -DHAVE_ARC4RANDOM -DUSE_RFC3542
BINOWN= root
struct ip6_hbh *ext;
int currentlen;
u_int8_t type;
- socklen_t extlen, len, origextlen;
+ socklen_t extlen, len, __unused origextlen;
void *databuf;
size_t offset;
u_int16_t value2;
void
do_file(filenode *fnode)
{
- f_reqnode *r, *r_tmp;
+ f_reqnode *r;
+ /* f_reqnode *r_tmp; */
f_provnode *p, *p_tmp;
provnode *pnode;
int was_set;
*/
r = fnode->req_list;
while (r != NULL) {
- r_tmp = r;
+ /*r_tmp = r;*/
satisfy_req(r, fnode->filename);
r = r->next;
/*free(r_tmp);*/
main(int argc, char *argv[])
{
struct passwd *pw;
- int ch, howto, i, fd, kflag, lflag, nflag, qflag, pflag, sverrno;
+ int ch, howto, i, fd, kflag, lflag, nflag, qflag, sverrno;
+ int __unused pflag;
u_int pageins;
char *kernel = NULL, *p;
const char *user;
udev_monitor_init(struct client_info *cli, prop_array_t filters)
{
struct udev_monitor *udm;
- int error;
+ int __unused error;
udm = malloc(sizeof(struct udev_monitor));
if (udm == NULL)
int res;
char *sched = NULL;
char *cpustr = NULL;
- cpumask_t cpumask = 0;
+ cpumask_t __unused cpumask = 0;
while ((ch = getopt(ac, av, "v")) != -1) {
switch(ch) {
/* Variables for use by children */
int sdfh; /* and for subdisk */
- int initsize; /* actual size to write */
- int64_t sdsize; /* size of subdisk */
+ int __unused initsize; /* actual size to write */
+ int64_t __unused sdsize; /* size of subdisk */
if (dowait == 0) {
pid = fork(); /* into the background with you */
struct stat sb;
int fd;
const char *cp;
- char *path, *tail;
-
- tail = NULL;
+ char *path;
+
fd = -1;
/* one extra byte for a possible trailing slash required */
extract_currdev(void)
{
struct i386_devdesc new_currdev;
- int major, biosdev = -1;
+ int __unused major, biosdev = -1;
/* Assume we are booting from a BIOS disk by default */
new_currdev.d_dev = &biosdisk;
const char *strtype = "FreeBSD";
int type = ELFOSABI_FREEBSD;
int retval = 0;
- int ch, change = 0, verbose = 0, force = 0, listed = 0;
+ int ch, change = 0, force = 0, listed = 0;
+ int __unused verbose = 0;
while ((ch = getopt(argc, argv, "f:lt:v")) != -1)
switch (ch) {
WARNS?= 2
CFLAGS+= -D_FILE_OFFSET_BITS=64
+CFLAGS+= -Wno-unused-but-set-variable
DPADD= ${LIBBZ2}
LDADD= -lbz2
testcase_get_runas_uid(prop_dictionary_t testcase)
{
uint32_t uid = 0;
- int r;
+ int __unused r;
r = prop_dictionary_get_uint32(
prop_dictionary_get(testcase, "opts"), "runas_uid", &uid);
int temp = 0;
int list_size;
int top_offset; /* offset from top where menu items start */
- int vert_pos; /* vertical position */
int vert_size; /* vertical size for menu list item display */
int off_start = 1; /* offset from start of menu items to start display */
paint_menu(menu_list, max_width, max_height, list_size, top_offset, temp_win, off_start, vert_size);
counter = 1;
- vert_pos = 0;
do
{
if (off_start > 2)
output.c pattern.c position.c prompt.c search.c signal.c \
tags.c ttyin.c version.c
CFLAGS+= -I${.CURDIR} -DSYSDIR=\"/etc\"
+CFLAGS+= -Wno-unused-but-set-variable
DPADD= ${LIBTERMCAP}
LDADD= -ltermcap