diff options
author | David Robillard <d@drobilla.net> | 2020-11-17 18:48:03 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-17 18:48:03 +0100 |
commit | 4eee2e929cb273845cf4b00938968641caa0dfd4 (patch) | |
tree | 79b262fe8a022d95be94820274d7fa1414a97fb5 | |
parent | fece76a8ad9723b48e7b4d399ba39b63218afb6a (diff) | |
download | lilv-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.
-rw-r--r-- | src/util.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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* |