Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Sep 2020 02:45:47 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365494 - head/lib/libc/tests/stdlib/dynthr_mod
Message-ID:  <202009090245.0892jlhZ086997@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009090245.0892jlhZ086997>