aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
Diffstat (limited to 'serd')
-rw-r--r--serd/serd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h
index b88cb8f8..46a2bc80 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -46,6 +46,10 @@
#ifdef __cplusplus
extern "C" {
+# if defined(__clang__)
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
+# endif
#endif
/**
@@ -1085,6 +1089,9 @@ serd_writer_finish(SerdWriter* writer);
*/
#ifdef __cplusplus
+# if defined(__clang__)
+# pragma clang diagnostic pop
+# endif
} /* extern "C" */
#endif