Avoid warnings.
This commit is contained in:
parent
88fa17694e
commit
c3c3afc943
|
@ -10,7 +10,8 @@
|
||||||
int
|
int
|
||||||
useless (void)
|
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
|
/* This is to check __libc_current_sigrt* can be used in statically
|
||||||
linked apps. */
|
linked apps. */
|
||||||
return SIGRTMIN;
|
return SIGRTMIN;
|
||||||
|
|
|
@ -6,8 +6,9 @@
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
/* This is never called, just here to get pthreads linked in. */
|
/* This is never called, just here to get pthreads linked in. */
|
||||||
void
|
void *
|
||||||
useless (void)
|
useless (void *a)
|
||||||
{
|
{
|
||||||
pthread_create (0, 0, 0, 0);
|
pthread_t th;
|
||||||
|
pthread_create (&th, 0, useless, a);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue