Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/puffs WARNS=2



details:   https://anonhg.NetBSD.org/src/rev/2c85ed9e6985
branches:  trunk
changeset: 756307:2c85ed9e6985
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sun Jul 11 12:33:38 2010 +0000

description:
WARNS=2

diffstat:

 tests/fs/puffs/Makefile  |   4 +++-
 tests/fs/puffs/t_basic.c |  15 +++++----------
 2 files changed, 8 insertions(+), 11 deletions(-)

diffs (93 lines):

diff -r 1d243e1f42a9 -r 2c85ed9e6985 tests/fs/puffs/Makefile
--- a/tests/fs/puffs/Makefile   Sun Jul 11 12:29:08 2010 +0000
+++ b/tests/fs/puffs/Makefile   Sun Jul 11 12:33:38 2010 +0000
@@ -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>
diff -r 1d243e1f42a9 -r 2c85ed9e6985 tests/fs/puffs/t_basic.c
--- a/tests/fs/puffs/t_basic.c  Sun Jul 11 12:29:08 2010 +0000
+++ b/tests/fs/puffs/t_basic.c  Sun Jul 11 12:33:38 2010 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index