[glib: 12/26] gasyncqueue: Ignore use of deprecated types in deprecated APIs



commit aa261ca24af46bf4b0694a25567ab613ae62bd35
Author: Philip Withnall <withnall endlessm com>
Date:   Fri Jun 28 19:00:13 2019 +0100

    gasyncqueue: Ignore use of deprecated types in deprecated APIs
    
    It’s unavoidable.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Helps: #1438

 glib/gasyncqueue.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/glib/gasyncqueue.c b/glib/gasyncqueue.c
index 3eb38393d..4043e8abd 100644
--- a/glib/gasyncqueue.c
+++ b/glib/gasyncqueue.c
@@ -592,6 +592,7 @@ g_async_queue_timeout_pop_unlocked (GAsyncQueue *queue,
  *
  * Deprecated: use g_async_queue_timeout_pop().
  */
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 gpointer
 g_async_queue_timed_pop (GAsyncQueue *queue,
                          GTimeVal    *end_time)
@@ -615,6 +616,7 @@ g_async_queue_timed_pop (GAsyncQueue *queue,
 
   return retval;
 }
+G_GNUC_END_IGNORE_DEPRECATIONS
 
 /**
  * g_async_queue_timed_pop_unlocked:
@@ -636,6 +638,7 @@ g_async_queue_timed_pop (GAsyncQueue *queue,
  *
  * Deprecated: use g_async_queue_timeout_pop_unlocked().
  */
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
 gpointer
 g_async_queue_timed_pop_unlocked (GAsyncQueue *queue,
                                   GTimeVal    *end_time)
@@ -654,6 +657,7 @@ g_async_queue_timed_pop_unlocked (GAsyncQueue *queue,
 
   return g_async_queue_pop_intern_unlocked (queue, TRUE, m_end_time);
 }
+G_GNUC_END_IGNORE_DEPRECATIONS
 
 /**
  * g_async_queue_length:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]