]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Avoid warnings in test_archive_read_open2.c about unused variables.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 17 May 2011 04:11:15 +0000 (00:11 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Tue, 17 May 2011 04:11:15 +0000 (00:11 -0400)
SVN-Revision: 3350

libarchive/test/test_archive_read_open2.c

index 9c51125d5a2f12374d0ffddbe4ff1f65bf6537e6..0a801ac5d26d3d41d6e514aab5b7d981e68dd16f 100644 (file)
@@ -28,21 +28,31 @@ __FBSDID("$FreeBSD$");
 static int
 open_cb(struct archive *a, void *client)
 {
+       (void)a; /* UNUSED */
+       (void)client; /* UNUSED */
        return 0;
 }
 static ssize_t
 read_cb(struct archive *a, void *client, const void **buff)
 {
+       (void)a; /* UNUSED */
+       (void)client; /* UNUSED */
+       (void)buff; /* UNUSED */
        return (ssize_t)0;
 }
 static int64_t
 skip_cb(struct archive *a, void *client, int64_t request)
 {
+       (void)a; /* UNUSED */
+       (void)client; /* UNUSED */
+       (void)request; /* UNUSED */
        return (int64_t)0;
 }
 static int
 close_cb(struct archive *a, void *client)
 {
+       (void)a; /* UNUSED */
+       (void)client; /* UNUSED */
        return 0;
 }