summaryrefslogtreecommitdiff
path: root/tests/errorcheck-mutex-test.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-10-21 17:01:29 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-10-21 17:01:29 +0000
commit9df1f4fcc73807dc0ff4bad96caaba36b97c5a15 (patch)
tree0f79c4d957b0f47b09981a48e3182e593d39ea58 /tests/errorcheck-mutex-test.c
parentf089429b8539f2666efdfe224b176514d745c9b5 (diff)
downloadglib-9df1f4fcc73807dc0ff4bad96caaba36b97c5a15.tar.gz
Fix warnings from sparse. (#487491, Kjartan Maraas)
2007-10-21 Behdad Esfahbod <behdad@gnome.org> * glib/gdate.c (g_date_strftime): * glib/gmain.c (g_main_context_check): * glib/gregex.c (g_match_info_fetch_all), (g_regex_split_full): * glib/gthread.c (g_once_init_enter_impl), (g_once_init_leave): * glib/gthread.h: * glib/gutf8.c (g_utf16_to_utf8), (g_utf16_to_ucs4): * tests/errorcheck-mutex-test.c (lock_locked_mutex), (trylock_locked_mutex), (unlock_unlocked_mutex), (free_locked_mutex), (wait_on_unlocked_mutex), (wait_on_otherwise_locked_mutex), (timed_wait_on_unlocked_mutex), (timed_wait_on_otherwise_locked_mutex): Fix warnings from sparse. (#487491, Kjartan Maraas) svn path=/trunk/; revision=5792
Diffstat (limited to 'tests/errorcheck-mutex-test.c')
-rw-r--r--tests/errorcheck-mutex-test.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/errorcheck-mutex-test.c b/tests/errorcheck-mutex-test.c
index eab95132b..5b300572c 100644
--- a/tests/errorcheck-mutex-test.c
+++ b/tests/errorcheck-mutex-test.c
@@ -15,7 +15,7 @@ locking_thread (gpointer mutex)
}
static void
-lock_locked_mutex ()
+lock_locked_mutex (void)
{
GMutex* mutex = g_mutex_new ();
g_mutex_lock (mutex);
@@ -23,7 +23,7 @@ lock_locked_mutex ()
}
static void
-trylock_locked_mutex ()
+trylock_locked_mutex (void)
{
GMutex* mutex = g_mutex_new ();
g_mutex_lock (mutex);
@@ -31,7 +31,7 @@ trylock_locked_mutex ()
}
static void
-unlock_unlocked_mutex ()
+unlock_unlocked_mutex (void)
{
GMutex* mutex = g_mutex_new ();
g_mutex_lock (mutex);
@@ -40,7 +40,7 @@ unlock_unlocked_mutex ()
}
static void
-free_locked_mutex ()
+free_locked_mutex (void)
{
GMutex* mutex = g_mutex_new ();
g_mutex_lock (mutex);
@@ -48,7 +48,7 @@ free_locked_mutex ()
}
static void
-wait_on_unlocked_mutex ()
+wait_on_unlocked_mutex (void)
{
GMutex* mutex = g_mutex_new ();
GCond* cond = g_cond_new ();
@@ -56,7 +56,7 @@ wait_on_unlocked_mutex ()
}
static void
-wait_on_otherwise_locked_mutex ()
+wait_on_otherwise_locked_mutex (void)
{
GMutex* mutex = g_mutex_new ();
GCond* cond = g_cond_new ();
@@ -67,7 +67,7 @@ wait_on_otherwise_locked_mutex ()
}
static void
-timed_wait_on_unlocked_mutex ()
+timed_wait_on_unlocked_mutex (void)
{
GMutex* mutex = g_mutex_new ();
GCond* cond = g_cond_new ();
@@ -75,7 +75,7 @@ timed_wait_on_unlocked_mutex ()
}
static void
-timed_wait_on_otherwise_locked_mutex ()
+timed_wait_on_otherwise_locked_mutex (void)
{
GMutex* mutex = g_mutex_new ();
GCond* cond = g_cond_new ();