From 4eee2e929cb273845cf4b00938968641caa0dfd4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 17 Nov 2020 18:48:03 +0100 Subject: Suppress internal deprecation warnings about serd_uri_to_path() This function is deprecated, but is only used here in the implementation of lilv_uri_to_path() which is also deprecated (for the same reason), so application code will still get the warning. --- src/util.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/util.c b/src/util.c index ac0ca55..6d80975 100644 --- a/src/util.c +++ b/src/util.c @@ -90,7 +90,16 @@ lilv_strdup(const char* str) const char* lilv_uri_to_path(const char* uri) { +#ifdef __GNUC__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + return (const char*)serd_uri_to_path((const uint8_t*)uri); + +#ifdef __GNUC__ +# pragma GCC diagnostic pop +#endif } char* -- cgit v1.2.1