diff options
author | David Robillard <d@drobilla.net> | 2020-07-21 19:39:53 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-07-21 19:39:53 +0200 |
commit | 1ba75a48418168bb3d366346a92c4aae87f8d83b (patch) | |
tree | 8508169153b7fdd3ac756520ac0a891649fb0a46 | |
parent | e6ad91a2221ef9f49bfec54a7290c96e4b751427 (diff) | |
download | lilv-1ba75a48418168bb3d366346a92c4aae87f8d83b.tar.gz lilv-1ba75a48418168bb3d366346a92c4aae87f8d83b.tar.bz2 lilv-1ba75a48418168bb3d366346a92c4aae87f8d83b.zip |
Suppress Wzero-as-null-pointer-constant in header
For convenience of C++ projects that include the C header.
-rw-r--r-- | lilv/lilv.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |