Merge pull request #288 from benrubson/cygwarn

Mute a GCC warning
This commit is contained in:
Bill Zissimopoulos 2020-03-01 20:43:41 +02:00 committed by GitHub
commit 403e234895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{