aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-03-09 15:18:48 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 11:44:44 -0800
commitf469a55a46521760adcf93d82491d27f80ec44e5 (patch)
tree26e9e6ad32d8d453b96c229c4a7e515bde4e6c89
parent3d7a9a20958ac5567a20ff51663a4e15d02ea705 (diff)
downloadsubsurface-f469a55a46521760adcf93d82491d27f80ec44e5.tar.gz
Silence warnings in parse-xml.c
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--subsurface-core/parse-xml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/subsurface-core/parse-xml.c b/subsurface-core/parse-xml.c
index a617648fb..12e029fe2 100644
--- a/subsurface-core/parse-xml.c
+++ b/subsurface-core/parse-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>