diff --git a/subsurface-core/save-html.c b/subsurface-core/save-html.c
index 5fc5b000a..2d0ea9cf3 100644
--- a/subsurface-core/save-html.c
+++ b/subsurface-core/save-html.c
@@ -1,3 +1,6 @@
+// Clang has a bug on zero-initialization of C structs.
+#pragma clang diagnostic ignored "-Wmissing-field-initializers"
+
#include "save-html.h"
#include "qthelperfromc.h"
#include "gettext.h"