From 76ec0420d159c2cb47889da8033f02a3e7ae6647 Mon Sep 17 00:00:00 2001 From: benrubson <6764151+benrubson@users.noreply.github.com> Date: Sat, 29 Feb 2020 23:58:51 +0100 Subject: [PATCH] Mute a GCC warning solves #287 --- inc/fuse/winfsp_fuse.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/fuse/winfsp_fuse.h b/inc/fuse/winfsp_fuse.h index 4eb2834c..63c18347 100644 --- a/inc/fuse/winfsp_fuse.h +++ b/inc/fuse/winfsp_fuse.h @@ -360,7 +360,10 @@ static inline int fsp_fuse_set_signal_handlers(void *se) static sigset_t sigmask; static pthread_t sigthr; - struct sigaction oldsa, newsa = { 0 }; + struct sigaction oldsa, newsa; + + # memset instead of ={0} to avoid a GCC -Wmissing-field-initializers warning + memset(&newsa, 0, sizeof newsa); if (0 != se) {