Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2018 17:46:20 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r328344 - head/tests/sys/kern
Message-ID:  <201801241746.w0OHkKdI058094@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Wed Jan 24 17:46:20 2018
New Revision: 328344
URL: https://svnweb.freebsd.org/changeset/base/328344

Log:
  Mark the unused argument to continue_thread() as such.
  
  clang in HEAD and 11 does not warn about this, but clang in 10 does.

Modified:
  head/tests/sys/kern/ptrace_test.c

Modified: head/tests/sys/kern/ptrace_test.c
==============================================================================
--- head/tests/sys/kern/ptrace_test.c	Wed Jan 24 17:12:34 2018	(r328343)
+++ head/tests/sys/kern/ptrace_test.c	Wed Jan 24 17:46:20 2018	(r328344)
@@ -3474,7 +3474,7 @@ ATF_TC_BODY(ptrace__PT_STEP_with_signal, tc)
  * that restarting doesn't retrigger the breakpoint.
  */
 static void *
-continue_thread(void *arg)
+continue_thread(void *arg __unused)
 {
 	breakpoint();
 	return (NULL);



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