From b5628d89a3a76d089010a1e6f29e0ad7f6a6403d Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Mon, 27 Apr 2015 12:53:32 -0700 Subject: [PATCH] fix compilation warning: missing field 'readlink' initializer in Clang: CXX(target) Release/obj.target/fuse4js/fuse4js.o ../fuse4js.cc:384:36: warning: missing field 'readlink' initializer [-Wmissing-field-initializers] struct fuse_operations ops = { 0 }; ^ 1 warning generated. --- fuse4js.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fuse4js.cc b/fuse4js.cc index 14f580d..db9af4a 100644 --- a/fuse4js.cc +++ b/fuse4js.cc @@ -381,7 +381,8 @@ void f4js_destroy (void *data) void *fuse_thread(void *) { - struct fuse_operations ops = { 0 }; + struct fuse_operations ops; + memset(&ops, 0, sizeof(ops)); ops.truncate = f4js_truncate; ops.getattr = f4js_getattr; ops.readdir = f4js_readdir;