fuse3: fix build warning in fuse_signals.c
authorGeorgi Valkov <[email protected]>
Thu, 12 Jun 2025 05:28:04 +0000 (08:28 +0300)
committerRobert Marko <[email protected]>
Mon, 23 Jun 2025 08:26:34 +0000 (10:26 +0200)
commit9ef176aaecbb7cc8ff9f522fe12e8e26c941e000
tree87cc20b63ff79cbf85706e1cf75b80290c8389eb
parent992b62589b15bf56ecd00840662a99fcc6eec6ed
fuse3: fix build warning in fuse_signals.c

BT_STACK_SZ and backtrace_buffer are not used when
HAVE_BACKTRACE is undefined. Wrap them in #ifdef
to avoid a build warning:

../lib/fuse_signals.c:31:14: warning: 'backtrace_buffer' defined but not used [-Wunused-variable]
   31 | static void *backtrace_buffer[BT_STACK_SZ];
      |              ^~~~~~~~~~~~~~~~

[1] https://github.com/libfuse/libfuse/pull/1245

Signed-off-by: Georgi Valkov <[email protected]>
utils/fuse3/Makefile
utils/fuse3/patches/100-fuse_signals.c-fix-build-warning-when-HAVE_BACKTRACE.patch [new file with mode: 0644]