From: Michihiro NAKAJIMA Date: Tue, 17 May 2011 04:11:15 +0000 (-0400) Subject: Avoid warnings in test_archive_read_open2.c about unused variables. X-Git-Tag: v3.0.0a~337 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=278bd787eb7fc624ce228feb64c8ab36863e76a5;p=thirdparty%2Flibarchive.git Avoid warnings in test_archive_read_open2.c about unused variables. SVN-Revision: 3350 --- diff --git a/libarchive/test/test_archive_read_open2.c b/libarchive/test/test_archive_read_open2.c index 9c51125d5..0a801ac5d 100644 --- a/libarchive/test/test_archive_read_open2.c +++ b/libarchive/test/test_archive_read_open2.c @@ -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; }