summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-17 18:48:03 +0100
committerDavid Robillard <d@drobilla.net>2020-11-17 18:48:03 +0100
commit4eee2e929cb273845cf4b00938968641caa0dfd4 (patch)
tree79b262fe8a022d95be94820274d7fa1414a97fb5 /src
parentfece76a8ad9723b48e7b4d399ba39b63218afb6a (diff)
downloadlilv-4eee2e929cb273845cf4b00938968641caa0dfd4.tar.gz
lilv-4eee2e929cb273845cf4b00938968641caa0dfd4.tar.bz2
lilv-4eee2e929cb273845cf4b00938968641caa0dfd4.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/util.c9
1 files changed, 9 insertions, 0 deletions
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*