diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-01-20 12:07:18 +0000 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-01-31 01:49:00 -0500 |
commit | b222b1bff3950e162a621e199c6897206fa45a4e (patch) | |
tree | 6f020b5eb5fdcbbf5c8c095cfae5b272202af277 /tests | |
parent | 7a05b330cdb1fff6cd082b473ae8f2f10c2cdd2b (diff) | |
download | libnice-b222b1bff3950e162a621e199c6897206fa45a4e.tar.gz |
tests: Remove redundant GLIB_CHECK_VERSION checks
Since we define GLIB_VERSION_MIN_REQUIRED, GLib will not emit deprecated
function call warnings for functions like g_type_init() or
g_thread_init().
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-add-remove-stream.c | 2 | ||||
-rw-r--r-- | tests/test-build-io-stream.c | 4 | ||||
-rw-r--r-- | tests/test-dribble.c | 2 | ||||
-rw-r--r-- | tests/test-fallback.c | 2 | ||||
-rw-r--r-- | tests/test-fullmode.c | 2 | ||||
-rw-r--r-- | tests/test-io-stream-cancelling.c | 4 | ||||
-rw-r--r-- | tests/test-io-stream-closing.c | 4 | ||||
-rw-r--r-- | tests/test-io-stream-pollable.c | 4 | ||||
-rw-r--r-- | tests/test-io-stream-thread.c | 4 | ||||
-rw-r--r-- | tests/test-mainloop.c | 2 | ||||
-rw-r--r-- | tests/test-restart.c | 2 | ||||
-rw-r--r-- | tests/test-send-recv.c | 4 | ||||
-rw-r--r-- | tests/test-thread.c | 2 | ||||
-rw-r--r-- | tests/test.c | 2 |
14 files changed, 0 insertions, 40 deletions
diff --git a/tests/test-add-remove-stream.c b/tests/test-add-remove-stream.c index dfb25a1..5ed3463 100644 --- a/tests/test-add-remove-stream.c +++ b/tests/test-add-remove-stream.c @@ -55,9 +55,7 @@ main (void) #endif nice_address_init (&addr); g_type_init (); -#if !GLIB_CHECK_VERSION(2,31,8) g_thread_init (NULL); -#endif if (!nice_address_set_from_string (&addr, "127.0.0.1")) g_assert_not_reached (); diff --git a/tests/test-build-io-stream.c b/tests/test-build-io-stream.c index 386ffd0..45da124 100644 --- a/tests/test-build-io-stream.c +++ b/tests/test-build-io-stream.c @@ -469,12 +469,8 @@ main (void) WSAStartup (0x0202, &w); #endif nice_address_init (&addr); -#if !GLIB_CHECK_VERSION(2, 36, 0) g_type_init (); -#endif -#if !GLIB_CHECK_VERSION(2, 31, 8) g_thread_init (NULL); -#endif g_assert (nice_address_set_from_string (&addr, "127.0.0.1")); diff --git a/tests/test-dribble.c b/tests/test-dribble.c index f385315..f750dbc 100644 --- a/tests/test-dribble.c +++ b/tests/test-dribble.c @@ -206,9 +206,7 @@ int main (void) #endif g_type_init (); -#if !GLIB_CHECK_VERSION(2,31,8) g_thread_init (NULL); -#endif global_mainloop = g_main_loop_new (NULL, FALSE); diff --git a/tests/test-fallback.c b/tests/test-fallback.c index 007fa7b..f97cb0d 100644 --- a/tests/test-fallback.c +++ b/tests/test-fallback.c @@ -492,9 +492,7 @@ int main (void) WSAStartup(0x0202, &w); #endif g_type_init (); -#if !GLIB_CHECK_VERSION(2,31,8) g_thread_init (NULL); -#endif global_mainloop = g_main_loop_new (NULL, FALSE); diff --git a/tests/test-fullmode.c b/tests/test-fullmode.c index c47dde3..bd56543 100644 --- a/tests/test-fullmode.c +++ b/tests/test-fullmode.c @@ -809,9 +809,7 @@ int main (void) WSAStartup(0x0202, &w); #endif g_type_init (); -#if !GLIB_CHECK_VERSION(2,31,8) g_thread_init(NULL); -#endif global_mainloop = g_main_loop_new (NULL, FALSE); diff --git a/tests/test-io-stream-cancelling.c b/tests/test-io-stream-cancelling.c index efcb60c..05cbaa0 100644 --- a/tests/test-io-stream-cancelling.c +++ b/tests/test-io-stream-cancelling.c @@ -111,12 +111,8 @@ int main (void) WSADATA w; WSAStartup (0x0202, &w); #endif -#if !GLIB_CHECK_VERSION(2, 36, 0) g_type_init (); -#endif -#if !GLIB_CHECK_VERSION(2, 31, 8) g_thread_init (NULL); -#endif l_data = g_malloc0 (sizeof (CancellationData)); l_data->cancellable = g_cancellable_new (); diff --git a/tests/test-io-stream-closing.c b/tests/test-io-stream-closing.c index c3318e1..1803a72 100644 --- a/tests/test-io-stream-closing.c +++ b/tests/test-io-stream-closing.c @@ -153,12 +153,8 @@ int main (void) WSADATA w; WSAStartup (0x0202, &w); #endif -#if !GLIB_CHECK_VERSION(2, 36, 0) g_type_init (); -#endif -#if !GLIB_CHECK_VERSION(2, 31, 8) g_thread_init (NULL); -#endif l_data = g_malloc0 (sizeof (ClosingData)); r_data = g_malloc0 (sizeof (ClosingData)); diff --git a/tests/test-io-stream-pollable.c b/tests/test-io-stream-pollable.c index e448460..510145d 100644 --- a/tests/test-io-stream-pollable.c +++ b/tests/test-io-stream-pollable.c @@ -158,12 +158,8 @@ int main (void) WSADATA w; WSAStartup (0x0202, &w); #endif -#if !GLIB_CHECK_VERSION(2, 36, 0) g_type_init (); -#endif -#if !GLIB_CHECK_VERSION(2,31,8) g_thread_init (NULL); -#endif l_data = g_malloc0 (sizeof (ThreadData)); r_data = g_malloc0 (sizeof (ThreadData)); diff --git a/tests/test-io-stream-thread.c b/tests/test-io-stream-thread.c index 7830a49..db14fe4 100644 --- a/tests/test-io-stream-thread.c +++ b/tests/test-io-stream-thread.c @@ -124,12 +124,8 @@ int main (void) WSADATA w; WSAStartup (0x0202, &w); #endif -#if !GLIB_CHECK_VERSION(2, 36, 0) g_type_init (); -#endif -#if !GLIB_CHECK_VERSION(2,31,8) g_thread_init (NULL); -#endif l_data = g_malloc0 (sizeof (ThreadData)); r_data = g_malloc0 (sizeof (ThreadData)); diff --git a/tests/test-mainloop.c b/tests/test-mainloop.c index f5aaa55..e790ec7 100644 --- a/tests/test-mainloop.c +++ b/tests/test-mainloop.c @@ -73,9 +73,7 @@ main (void) nice_address_init (&addr); g_type_init (); -#if !GLIB_CHECK_VERSION(2,31,8) g_thread_init(NULL); -#endif loop = g_main_loop_new (NULL, FALSE); diff --git a/tests/test-restart.c b/tests/test-restart.c index c46b459..425f825 100644 --- a/tests/test-restart.c +++ b/tests/test-restart.c @@ -402,9 +402,7 @@ int main (void) WSAStartup(0x0202, &w); #endif g_type_init (); -#if !GLIB_CHECK_VERSION(2,31,8) g_thread_init(NULL); -#endif global_mainloop = g_main_loop_new (NULL, FALSE); diff --git a/tests/test-send-recv.c b/tests/test-send-recv.c index 760dcf6..701d921 100644 --- a/tests/test-send-recv.c +++ b/tests/test-send-recv.c @@ -808,12 +808,8 @@ main (int argc, char *argv[]) WSADATA w; WSAStartup (0x0202, &w); #endif -#if !GLIB_CHECK_VERSION(2, 36, 0) g_type_init (); -#endif -#if !GLIB_CHECK_VERSION(2, 31, 8) g_thread_init (NULL); -#endif if (!long_mode) { /* Quick mode. Just test each of the stream APIs in reliable and diff --git a/tests/test-thread.c b/tests/test-thread.c index 1020645..57270cd 100644 --- a/tests/test-thread.c +++ b/tests/test-thread.c @@ -197,9 +197,7 @@ int main (void) WSAStartup(0x0202, &w); #endif g_type_init (); -#if !GLIB_CHECK_VERSION(2,31,8) g_thread_init(NULL); -#endif lmainctx = g_main_context_new (); rmainctx = g_main_context_new (); diff --git a/tests/test.c b/tests/test.c index ea0b0ea..edef196 100644 --- a/tests/test.c +++ b/tests/test.c @@ -62,9 +62,7 @@ main (void) nice_address_init (&addr_remote); g_type_init (); -#if !GLIB_CHECK_VERSION(2,31,8) g_thread_init(NULL); -#endif g_assert (nice_address_set_from_string (&addr_local, "127.0.0.1")); g_assert (nice_address_set_from_string (&addr_remote, "127.0.0.1")); |