Author: kevans
Date: Wed Sep  9 02:45:47 2020
New Revision: 365494
URL: https://svnweb.freebsd.org/changeset/base/365494

Log:
  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

Modified:
  head/lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c

Modified: head/lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c
==============================================================================
--- head/lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c  Wed Sep  9 02:42:21 
2020        (r365493)
+++ head/lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c  Wed Sep  9 02:45:47 
2020        (r365494)
@@ -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;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to