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:
Kyle Evans 2020-09-09 02:45:47 +00:00
parent 5593499d4a
commit 0e907c045b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365494

View File

@ -41,10 +41,12 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
#include <pthread.h>
void mod_main(int op);
static pthread_t thr;
static void *
mod_thread(void *ptr)
mod_thread(void *ptr __unused)
{
char *volatile dummy;