aboutsummaryrefslogtreecommitdiffstats
path: root/lib/helper.c
diff options
context:
space:
mode:
authorBernd Schubert <bschubert@ddn.com>2025-02-17 23:39:04 +0100
committerBernd Schubert <bernd@bsbernd.com>2025-02-18 22:32:49 +0100
commitc6ae7425aa9cac34e5ce320b1ac3a09753f6c66f (patch)
tree7193ad786a76bfd64516c8e9d66a306723b6c1e2 /lib/helper.c
parent7fe971b406706b25e2eb4064fa5dbd1c06c7c083 (diff)
downloadlibfuse-c6ae7425aa9cac34e5ce320b1ac3a09753f6c66f.tar.gz
Avoid nested function declarations in helper functions
libfuse-3.17 introduced several functions that should only be called via inlined helper functions, never directly. To enforce this, these functions were declared within the inlined functions. However, this triggers the compiler warning "-Werror=nested-externs". While this warning is valid, the nested declarations were intentional to prevent direct usage of these functions. Rather than suppressing the warning with pragmas, move these function declarations outside the helper functions while maintaining the intended access restrictions through other means. Closes: https://github.com/libfuse/libfuse/issues/1134 Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Diffstat (limited to 'lib/helper.c')
-rw-r--r--lib/helper.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/helper.c b/lib/helper.c
index a1cf98c..a7b2fe0 100644
--- a/lib/helper.c
+++ b/lib/helper.c
@@ -304,10 +304,6 @@ int fuse_daemonize(int foreground)
return 0;
}
-/* Not symboled, as not part of the official API */
-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);
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)