diff options
author | Jens Georg <mail@jensge.org> | 2021-06-20 16:10:00 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2021-06-20 16:10:00 +0200 |
commit | 41981fff1ac4e068acd679f4ef0551807db07f6d (patch) | |
tree | ebd66f7b7b28a9fc754c66d0f0abbde9ed56c47c /libgssdp | |
parent | f5af3f88bd6e1d393a576a405c060fa9ddd4203f (diff) | |
download | gssdp-41981fff1ac4e068acd679f4ef0551807db07f6d.tar.gz |
net-posix: Disable deprecation warning
Used to fix deprecation warning for g_memdup2
Diffstat (limited to 'libgssdp')
-rw-r--r-- | libgssdp/gssdp-net-posix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgssdp/gssdp-net-posix.c b/libgssdp/gssdp-net-posix.c index e98fd20..2525c67 100644 --- a/libgssdp/gssdp-net-posix.c +++ b/libgssdp/gssdp-net-posix.c @@ -202,7 +202,10 @@ gssdp_net_mac_lookup (GSSDPNetworkDevice *device, const char *ip_address) g_clear_pointer (&data, g_free); data_length = RTA_PAYLOAD (rtattr); #if GLIB_CHECK_VERSION(2, 68, 0) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" data = g_memdup2 (RTA_DATA (rtattr), data_length); +#pragma GCC diagnostic pop #else data = g_memdup (RTA_DATA (rtattr), data_length); #endif |