summaryrefslogtreecommitdiffstats
path: root/subsurface-core/save-xml.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-03-09 15:19:38 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 11:44:54 -0800
commit5cebf438495f04a2ce40522f3cd8b2489db8df9e (patch)
tree688f75fdcfa1c7caa95b20bf12753cf81d1e4638 /subsurface-core/save-xml.c
parentdf55799a980f4b0f6a84bea637dc1df518910883 (diff)
downloadsubsurface-5cebf438495f04a2ce40522f3cd8b2489db8df9e.tar.gz
Silence warnings in save-xml.c
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/save-xml.c')
-rw-r--r--subsurface-core/save-xml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/subsurface-core/save-xml.c b/subsurface-core/save-xml.c
index eabcf4f26..2335637e8 100644
--- a/subsurface-core/save-xml.c
+++ b/subsurface-core/save-xml.c
@@ -1,3 +1,6 @@
+// Clang has a bug on zero-initialization of C structs.
+#pragma clang diagnostic ignored "-Wmissing-field-initializers"
+
#include <stdio.h>
#include <ctype.h>
#include <string.h>