mirror of
https://github.com/torarnv/sparsebundlefs.git
synced 2026-03-03 18:28:07 +01:00
Fix unused parameter [-Wunused-parameter] warnings
This commit is contained in:
committed by
Tor Arne Vestbø
parent
e45953d427
commit
5b83abfa26
@@ -90,7 +90,7 @@ static int sparsebundle_getattr(const char *path, struct stat *stbuf)
|
||||
}
|
||||
|
||||
static int sparsebundle_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
|
||||
off_t offset, struct fuse_file_info *fi)
|
||||
off_t /* offset */, struct fuse_file_info *)
|
||||
{
|
||||
if (strcmp(path, "/") != 0)
|
||||
return -ENOENT;
|
||||
@@ -223,7 +223,7 @@ static int sparsebundle_read_pad_with_zeroes(size_t length, void *read_data)
|
||||
}
|
||||
|
||||
static int sparsebundle_read(const char *path, char *buffer, size_t length, off_t offset,
|
||||
struct fuse_file_info *fi)
|
||||
struct fuse_file_info *)
|
||||
{
|
||||
sparsebundle_read_operations read_ops = {
|
||||
&sparsebundle_read_process_band,
|
||||
@@ -303,7 +303,7 @@ static void sparsebundle_read_buf_close_files()
|
||||
}
|
||||
|
||||
static int sparsebundle_read_buf(const char *path, struct fuse_bufvec **bufp,
|
||||
size_t length, off_t offset, struct fuse_file_info *fi)
|
||||
size_t length, off_t offset, struct fuse_file_info *)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
@@ -349,7 +349,7 @@ static int sparsebundle_read_buf(const char *path, struct fuse_bufvec **bufp,
|
||||
}
|
||||
#endif
|
||||
|
||||
static int sparsebundle_release(const char *path, struct fuse_file_info *fi)
|
||||
static int sparsebundle_release(const char * /* path */, struct fuse_file_info *)
|
||||
{
|
||||
SB_DATA->times_opened--;
|
||||
syslog(LOG_DEBUG, "closed %s, now referenced %ju times",
|
||||
@@ -375,7 +375,7 @@ static int sparsebundle_show_usage(char *program_name)
|
||||
|
||||
enum { SPARSEBUNDLE_OPT_DEBUG };
|
||||
|
||||
static int sparsebundle_opt_proc(void *data, const char *arg, int key, struct fuse_args *outargs)
|
||||
static int sparsebundle_opt_proc(void *data, const char *arg, int key, struct fuse_args * /* outargs */)
|
||||
{
|
||||
switch (key) {
|
||||
case SPARSEBUNDLE_OPT_DEBUG:
|
||||
|
||||
Reference in New Issue
Block a user