From b43d80ff1c9169c9ef4ea46e876edfbfa3eff15e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 18 Dec 2020 11:22:47 +0100 Subject: Fix build with ancient GCC --- src/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/util.c b/src/util.c index 6d80975..d299c1e 100644 --- a/src/util.c +++ b/src/util.c @@ -90,14 +90,14 @@ lilv_strdup(const char* str) const char* lilv_uri_to_path(const char* uri) { -#ifdef __GNUC__ +#if defined(__GNUC__) && __GNUC__ > 4 # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif return (const char*)serd_uri_to_path((const uint8_t*)uri); -#ifdef __GNUC__ +#if defined(__GNUC__) && __GNUC__ > 4 # pragma GCC diagnostic pop #endif } -- cgit v1.2.1