[libsoup] Use G_GNUC_[BEGIN,END]_IGNORE_DEPRECATIONS instead



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]