[aravis] tests: avoid warnings on deprecated g_thread_init use.



commit 4435fa5ea02dd4fac0ce283dc80762658abbf04a
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sun Apr 28 17:13:36 2013 +0200

    tests: avoid warnings on deprecated g_thread_init use.

 tests/arvcameratest.c    |    4 +---
 tests/arvheartbeattest.c |    4 +---
 tests/arvtest.c          |    4 +---
 3 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/tests/arvcameratest.c b/tests/arvcameratest.c
index 4a16fca..73a2bf5 100644
--- a/tests/arvcameratest.c
+++ b/tests/arvcameratest.c
@@ -1,5 +1,3 @@
-#define GLIB_DISABLE_DEPRECATION_WARNINGS
-
 #include <arv.h>
 #include <stdlib.h>
 #include <signal.h>
@@ -165,7 +163,7 @@ main (int argc, char **argv)
 
        data.buffer_count = 0;
 
-       g_thread_init (NULL);
+       arv_g_thread_init (NULL);
        arv_g_type_init ();
 
        context = g_option_context_new (NULL);
diff --git a/tests/arvheartbeattest.c b/tests/arvheartbeattest.c
index 4c47a3b..b29a0e1 100644
--- a/tests/arvheartbeattest.c
+++ b/tests/arvheartbeattest.c
@@ -1,5 +1,3 @@
-#define GLIB_DISABLE_DEPRECATION_WARNINGS
-
 #include <arv.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -57,7 +55,7 @@ int main(int argc, char *argv[])
     void (*old_sigint_handler)(int);
     int i, payload;
 
-    g_thread_init (NULL);
+    arv_g_thread_init (NULL);
     arv_g_type_init ();
 
     context = g_option_context_new (NULL);
diff --git a/tests/arvtest.c b/tests/arvtest.c
index fc1a4ea..27d9c1e 100644
--- a/tests/arvtest.c
+++ b/tests/arvtest.c
@@ -1,5 +1,3 @@
-#define GLIB_DISABLE_DEPRECATION_WARNINGS
-
 #include <arv.h>
 #include <stdlib.h>
 
@@ -54,7 +52,7 @@ main (int argc, char **argv)
        char memory_buffer[100000];
        int i;
 
-       g_thread_init (NULL);
+       arv_g_thread_init (NULL);
        arv_g_type_init ();
 
        context = g_option_context_new (NULL);


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