diff options
author | David Robillard <d@drobilla.net> | 2019-10-17 14:52:56 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-10-17 14:52:56 +0200 |
commit | 8ac46250fc5dfe2cbded8691ee26a2f13087b8d2 (patch) | |
tree | 6bde152ec00b3f882a2c8f5f17b6319e56103907 | |
parent | 3834185601c6c1a16cd9c9415c7af9c8c4d18784 (diff) | |
download | lilv-8ac46250fc5dfe2cbded8691ee26a2f13087b8d2.tar.gz lilv-8ac46250fc5dfe2cbded8691ee26a2f13087b8d2.tar.bz2 lilv-8ac46250fc5dfe2cbded8691ee26a2f13087b8d2.zip |
Fix deprecation warnings in C++ bindings
-rw-r--r-- | lilv/lilvmm.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lilv/lilvmm.hpp b/lilv/lilvmm.hpp index d08db02..5a044b6 100644 --- a/lilv/lilvmm.hpp +++ b/lilv/lilvmm.hpp @@ -21,12 +21,26 @@ namespace Lilv { +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-declarations" +#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + LILV_DEPRECATED static inline const char* uri_to_path(const char* uri) { return lilv_uri_to_path(uri); } +#if defined(__clang__) +# pragma clang diagnostic pop +#elif __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) +# pragma GCC diagnostic pop +#endif + #define LILV_WRAP0(RT, prefix, name) \ inline RT name() { return lilv_ ## prefix ## _ ## name (me); } |