summaryrefslogtreecommitdiffstats
path: root/libsparse/output_file.c
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-02-27 16:56:15 -0800
committerMark Salyzyn <salyzyn@google.com>2014-02-28 08:08:01 -0800
commit031a748b2a9bf6dcfd3983d8f0f616718fcddd88 (patch)
treedc2a7fd3ec03336f02a30cf5e4ace2f5d5491094 /libsparse/output_file.c
parentb7a4868e1cad6a878c94077bc48b414c965cb516 (diff)
downloadsystem_core-031a748b2a9bf6dcfd3983d8f0f616718fcddd88.tar.gz
system_core-031a748b2a9bf6dcfd3983d8f0f616718fcddd88.tar.bz2
system_core-031a748b2a9bf6dcfd3983d8f0f616718fcddd88.zip
libsparse: deal with build warning messages
- mostly unused parameters, added defs.h to hold __unused macro - read_all prototype not included, added output_file.h to acquire Change-Id: Ib7ee00614acab53a6bd6a64f7e26a8c13dbe6297
Diffstat (limited to 'libsparse/output_file.c')
-rw-r--r--libsparse/output_file.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libsparse/output_file.c b/libsparse/output_file.c
index e63c4a929..1cf8d8dcf 100644
--- a/libsparse/output_file.c
+++ b/libsparse/output_file.c
@@ -29,6 +29,7 @@
#include <unistd.h>
#include <zlib.h>
+#include "defs.h"
#include "output_file.h"
#include "sparse_format.h"
#include "sparse_crc32.h"
@@ -264,7 +265,7 @@ static struct output_file_ops gz_file_ops = {
.close = gz_file_close,
};
-static int callback_file_open(struct output_file *out, int fd)
+static int callback_file_open(struct output_file *out __unused, int fd __unused)
{
return 0;
}
@@ -287,7 +288,7 @@ static int callback_file_skip(struct output_file *out, int64_t off)
return 0;
}
-static int callback_file_pad(struct output_file *out, int64_t len)
+static int callback_file_pad(struct output_file *out __unused, int64_t len __unused)
{
return -1;
}
@@ -631,8 +632,8 @@ static struct output_file *output_file_new_normal(void)
}
struct output_file *output_file_open_callback(int (*write)(void *, const void *, int),
- void *priv, unsigned int block_size, int64_t len, int gz, int sparse,
- int chunks, int crc)
+ void *priv, unsigned int block_size, int64_t len,
+ int gz __unused, int sparse, int chunks, int crc)
{
int ret;
struct output_file_callback *outc;