libc tests: dynthr_mod: fix some WARNS issues
This is being addressed as part of a side-patch I'm working on that builds all the things with WARNS=6, instead of relying on it being supplied in just shallow parts of the build with higher-level Makefile.inc. Provide a prototype for mod_main and annotate the thread function argument as unused. MFC after: 1 week
This commit is contained in:
parent
5593499d4a
commit
0e907c045b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365494
@ -41,10 +41,12 @@ __FBSDID("$FreeBSD$");
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
void mod_main(int op);
|
||||||
|
|
||||||
static pthread_t thr;
|
static pthread_t thr;
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
mod_thread(void *ptr)
|
mod_thread(void *ptr __unused)
|
||||||
{
|
{
|
||||||
char *volatile dummy;
|
char *volatile dummy;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user