From 1ba75a48418168bb3d366346a92c4aae87f8d83b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 21 Jul 2020 19:39:53 +0200 Subject: Suppress Wzero-as-null-pointer-constant in header For convenience of C++ projects that include the C header. --- lilv/lilv.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lilv') diff --git a/lilv/lilv.h b/lilv/lilv.h index 175ee9f..ab6d8ab 100644 --- a/lilv/lilv.h +++ b/lilv/lilv.h @@ -55,6 +55,10 @@ #ifdef __cplusplus extern "C" { +# if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +# endif #endif #define LILV_NS_DOAP "http://usefulinc.com/ns/doap#" @@ -1848,6 +1852,9 @@ lilv_ui_get_binary_uri(const LilvUI* ui); */ #ifdef __cplusplus +# if defined(__clang__) +# pragma clang diagnostic pop +# endif } /* extern "C" */ #endif -- cgit v1.2.1