From: Ulrich Drepper Date: Fri, 6 Apr 2007 22:19:46 +0000 (+0000) Subject: Avoid warnings. X-Git-Tag: cvs/fedora-glibc-20070416T2350~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3c3afc943ae7d41b1c76ae162e3c5988a3cc7e9;p=thirdparty%2Fglibc.git Avoid warnings. --- diff --git a/nptl/tst-locale1.c b/nptl/tst-locale1.c index 08b43704e53..2ee4c3fbce9 100644 --- a/nptl/tst-locale1.c +++ b/nptl/tst-locale1.c @@ -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; diff --git a/nptl/tst-locale2.c b/nptl/tst-locale2.c index 2c803e3ef00..c8821ad6b86 100644 --- a/nptl/tst-locale2.c +++ b/nptl/tst-locale2.c @@ -6,8 +6,9 @@ #include /* 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); }