[libsoup] Use G_GNUC_[BEGIN,END]_IGNORE_DEPRECATIONS instead
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Use G_GNUC_[BEGIN,END]_IGNORE_DEPRECATIONS instead
- Date: Wed, 7 Aug 2019 18:21:07 +0000 (UTC)
commit 036b0258bafff7af784e8320c9e77f5488341b83
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Aug 7 13:20:37 2019 -0500
Use G_GNUC_[BEGIN,END]_IGNORE_DEPRECATIONS instead
This is nicer, thanks to Christian for pointing out this exists.
libsoup/soup-date.h | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/libsoup/soup-date.h b/libsoup/soup-date.h
index 319ed9b9..04d65e8d 100644
--- a/libsoup/soup-date.h
+++ b/libsoup/soup-date.h
@@ -59,16 +59,11 @@ char *soup_date_to_string (SoupDate *date,
SOUP_AVAILABLE_IN_2_24
time_t soup_date_to_time_t (SoupDate *date);
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#endif
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
SOUP_AVAILABLE_IN_2_24
void soup_date_to_timeval (SoupDate *date,
GTimeVal *time);
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
+G_GNUC_END_IGNORE_DEPRECATIONS
SOUP_AVAILABLE_IN_2_24
gboolean soup_date_is_past (SoupDate *date);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]