Avoid warnings.

This commit is contained in:
Ulrich Drepper 2007-04-06 22:19:46 +00:00
parent 88fa17694e
commit c3c3afc943
2 changed files with 6 additions and 4 deletions

View 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;

View 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);
}