]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Avoid warnings.
authorUlrich Drepper <drepper@redhat.com>
Fri, 6 Apr 2007 22:19:46 +0000 (22:19 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 6 Apr 2007 22:19:46 +0000 (22:19 +0000)
nptl/tst-locale1.c
nptl/tst-locale2.c

index 08b43704e536d961ac0c37568c9a1857c52208db..2ee4c3fbce91081b597c8726d283c8bbd6d071c3 100644 (file)
@@ -10,7 +10,8 @@
 int
 useless (void)
 {
-  pthread_create (0, 0, 0, 0);
+  pthread_t th;
+  pthread_create (&th, 0, (void *(*) (void *)) useless, 0);
   /* This is to check __libc_current_sigrt* can be used in statically
      linked apps.  */
   return SIGRTMIN;
index 2c803e3ef00f29de226600316001721540f6b635..c8821ad6b8619b1b1b79181a605934c94db14453 100644 (file)
@@ -6,8 +6,9 @@
 #include <pthread.h>
 
 /* This is never called, just here to get pthreads linked in.  */
-void
-useless (void)
+void *
+useless (void *a)
 {
-  pthread_create (0, 0, 0, 0);
+  pthread_t th;
+  pthread_create (&th, 0, useless, a);
 }