Module Name: src
Committed By: pooka
Date: Sun Jul 11 12:33:38 UTC 2010
Modified Files:
src/tests/fs/puffs: Makefile t_basic.c
Log Message:
WARNS=2
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/fs/puffs/Makefile
cvs rdiff -u -r1.4 -r1.5 src/tests/fs/puffs/t_basic.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/fs/puffs/Makefile
diff -u src/tests/fs/puffs/Makefile:1.6 src/tests/fs/puffs/Makefile:1.7
--- src/tests/fs/puffs/Makefile:1.6 Sun Jul 11 12:26:19 2010
+++ src/tests/fs/puffs/Makefile Sun Jul 11 12:33:38 2010
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2010/07/11 12:26:19 pooka Exp $
+# $NetBSD: Makefile,v 1.7 2010/07/11 12:33:38 pooka Exp $
#
.include <bsd.own.mk>
@@ -16,5 +16,7 @@
LDADD+= -lrump -lrumpuser -lpthread
LDADD+= -lpuffs -lutil
+WARNS=2
+
.include <bsd.test.mk>
.include <bsd.subdir.mk>
Index: src/tests/fs/puffs/t_basic.c
diff -u src/tests/fs/puffs/t_basic.c:1.4 src/tests/fs/puffs/t_basic.c:1.5
--- src/tests/fs/puffs/t_basic.c:1.4 Sun Jul 11 12:26:19 2010
+++ src/tests/fs/puffs/t_basic.c Sun Jul 11 12:33:38 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: t_basic.c,v 1.4 2010/07/11 12:26:19 pooka Exp $ */
+/* $NetBSD: t_basic.c,v 1.5 2010/07/11 12:33:38 pooka Exp $ */
#include <sys/types.h>
#include <sys/mount.h>
@@ -57,7 +57,7 @@
rump_sys_statvfs1(fs, &svb, ST_WAIT);
}
-static void
+static void __unused
dumpopcount(void)
{
size_t i;
@@ -86,8 +86,7 @@
struct puffs_req *preq;
struct thefds *fds = arg;
char buf[BUFSIZE];
- ssize_t n;
- int error, comfd, puffsfd;
+ int comfd, puffsfd;
comfd = fds->servfd;
puffsfd = fds->rumpfd;
@@ -99,7 +98,7 @@
rump_pub_lwp_alloc_and_switch(0, 10);
for (;;) {
- ssize_t n, n2;
+ ssize_t n;
n = rump_sys_read(puffsfd, buf, sizeof(*phdr));
if (n <= 0)
@@ -135,7 +134,7 @@
struct putter_hdr *phdr;
char buf[BUFSIZE];
size_t toread;
- int error, comfd, puffsfd;
+ int comfd, puffsfd;
/* use static thread id */
rump_pub_lwp_alloc_and_switch(0, 11);
@@ -203,13 +202,11 @@
char *canon_dev, char *canon_dir)
{
pid_t childpid;
- pthread_t pt;
int *pflags = &args->us_pflags;
char comfd[16];
int sv[2];
size_t len;
ssize_t n;
- int rv;
/* Create sucketpair for communication with the real file server */
if (socketpair(PF_LOCAL, SOCK_STREAM, 0, sv) == -1)
@@ -382,7 +379,6 @@
};
char buf[PATH_MAX];
ssize_t len;
- int rv;
dtfsmountv("/mp", myopts);
@@ -435,7 +431,6 @@
};
pthread_t pt;
char buf[512];
- ssize_t len;
int fd;
dtfsmountv("/mp", myopts);