From 0fb058b33ec0debd994e9025e8d6bd76dabcb687 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 21 Jul 2020 19:38:59 +0200 Subject: Suppress Wzero-as-null-pointer-constant in header For convenience of C++ projects that include the C header. --- serd/serd.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'serd') 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 -- cgit v1.2.1