aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-21 19:38:59 +0200
committerDavid Robillard <d@drobilla.net>2020-07-21 19:38:59 +0200
commit0fb058b33ec0debd994e9025e8d6bd76dabcb687 (patch)
treee0910fa4b1c4bf7e798523f81332cbea01c9ce13
parent49a6eead82e7e07af197e5653dd4c3d547a38783 (diff)
downloadserd-0fb058b33ec0debd994e9025e8d6bd76dabcb687.tar.gz
serd-0fb058b33ec0debd994e9025e8d6bd76dabcb687.tar.bz2
serd-0fb058b33ec0debd994e9025e8d6bd76dabcb687.zip
Suppress Wzero-as-null-pointer-constant in header
For convenience of C++ projects that include the C header.
-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