mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
Avoid warnings.
This commit is contained in:
parent
88fa17694e
commit
c3c3afc943
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user