mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
tests: Ignore deprecated functions in a few main loop and timer tests
Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1438
This commit is contained in:
parent
2ed76969d0
commit
2df27e3416
@ -695,7 +695,9 @@ typedef struct {
|
||||
|
||||
GSource *timeout1, *timeout2;
|
||||
gint64 time1;
|
||||
GTimeVal tv;
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
GTimeVal tv; /* needed for g_source_get_current_time() */
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
} TimeTestData;
|
||||
|
||||
static gboolean
|
||||
@ -730,7 +732,9 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
}
|
||||
else
|
||||
{
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
GTimeVal tv;
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
/* Second iteration */
|
||||
g_assert_true (g_source_is_destroyed (data->timeout2));
|
||||
|
@ -21,6 +21,9 @@
|
||||
* Author: Matthias Clasen
|
||||
*/
|
||||
|
||||
/* We test a few deprecated APIs here. */
|
||||
#define GLIB_DISABLE_DEPRECATION_WARNINGS 1
|
||||
|
||||
#include "glib.h"
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user