summaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-03-09 15:18:34 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 11:44:41 -0800
commit3d7a9a20958ac5567a20ff51663a4e15d02ea705 (patch)
treecf0bfacc800b5f1890f3d2feea5baf04f8f1425e /subsurface-core
parent77909ead62138deef7d7e29a40a6e6fae99014a2 (diff)
downloadsubsurface-3d7a9a20958ac5567a20ff51663a4e15d02ea705.tar.gz
Silence warnings in membuffer.c
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r--subsurface-core/membuffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/subsurface-core/membuffer.c b/subsurface-core/membuffer.c
index 2889a0cdc..053edb8f0 100644
--- a/subsurface-core/membuffer.c
+++ b/subsurface-core/membuffer.c
@@ -1,3 +1,6 @@
+// Clang has a bug on zero-initialization of C structs.
+#pragma clang diagnostic ignored "-Wmissing-field-initializers"
+
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>