diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2025-04-09 07:38:45 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-04-09 13:01:37 +0200 |
commit | 0d4a6281c297aeb200dc30664372fc252fff0f99 (patch) | |
tree | 7d2f97ef68d3f896763e4541e8ebc1ebb8bd12e5 | |
parent | cb586bbfc3a1fc0e00ef8d8f8b73c881ff99f908 (diff) | |
download | libfuse-0d4a6281c297aeb200dc30664372fc252fff0f99.tar.gz |
lib: remove second fuse_main_real_versioned declaration
Newer gccs now use -Werror=redundant-decls which means that anyone
including fuse.h is getting an error of:
/usr/include/fuse3/fuse.h:959:5: error: redundant redeclaration of ‘fuse_main_real_versioned’ [-Werror=redundant-decls]
959 | int fuse_main_real_versioned(int argc, char *argv[],
| ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/fuse3/fuse.h:885:5: note: previous declaration of ‘fuse_main_real_versioned’ with type ‘int(int, char **, const struct fuse_operations *, size_t, struct libfuse_version *, void *)’ {aka ‘int(int, char **, const struct fuse_operations *, long unsigned int, struct libfuse_version *, void *)’}
885 | int fuse_main_real_versioned(int argc, char *argv[],
| ^~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
-rw-r--r-- | include/fuse.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/fuse.h b/include/fuse.h index c94b628..4582cc7 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -956,9 +956,6 @@ static inline int fuse_main_real(int argc, char *argv[], * * Example usage, see hello.c */ -int fuse_main_real_versioned(int argc, char *argv[], - const struct fuse_operations *op, size_t op_size, - struct libfuse_version *version, void *user_data); static inline int fuse_main_fn(int argc, char *argv[], const struct fuse_operations *op, void *user_data) |