From 8ac46250fc5dfe2cbded8691ee26a2f13087b8d2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Oct 2019 14:52:56 +0200 Subject: Fix deprecation warnings in C++ bindings --- lilv/lilvmm.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lilv/lilvmm.hpp') 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); } -- cgit v1.2.1