From 5c1130819c60f52a3ab1a27711f4d8cca7a4cd14 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Nov 2020 12:31:02 +0100 Subject: Deprecate serd_uri_to_path() --- test/test_uri.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/test_uri.c b/test/test_uri.c index 50fc311d..0328a413 100644 --- a/test/test_uri.c +++ b/test/test_uri.c @@ -51,6 +51,11 @@ test_file_uri(const char* hostname, serd_node_free(&node); } +#if defined(__GNUC__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + static void test_uri_to_path(void) { @@ -79,6 +84,10 @@ test_uri_to_path(void) assert(!strcmp((const char*)serd_uri_to_path(uri), "C|/Windows/Sucks")); } +#if defined(__GNUC__) +# pragma GCC diagnostic pop +#endif + static void test_uri_parsing(void) { -- cgit v1.2.1