Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sys Fix clang(1) build



details:   https://anonhg.NetBSD.org/src/rev/e0697b31479a
branches:  trunk
changeset: 744965:e0697b31479a
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Feb 19 17:13:00 2020 +0000

description:
Fix clang(1) build

Namespace a symbol that can be unused.

diffstat:

 tests/lib/libc/sys/t_ptrace_wait.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 00438fdfb8e2 -r e0697b31479a tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c        Wed Feb 19 17:05:06 2020 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c        Wed Feb 19 17:13:00 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_ptrace_wait.c,v 1.162 2020/02/13 15:27:41 mgorny Exp $       */
+/*     $NetBSD: t_ptrace_wait.c,v 1.163 2020/02/19 17:13:00 kamil Exp $        */
 
 /*-
  * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace_wait.c,v 1.162 2020/02/13 15:27:41 mgorny Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.163 2020/02/19 17:13:00 kamil Exp $");
 
 #define __LEGACY_PT_LWPINFO
 
@@ -8948,6 +8948,7 @@
     "Verify that concurrent signals issued to a single thread are reported "
     "correctly and passed back to a handler function");
 
+#if defined(__i386__) || defined(__x86_64__)
 THREAD_CONCURRENT_TEST(thread_concurrent_breakpoints, TCSH_DISCARD,
     THREAD_CONCURRENT_BREAKPOINT_NUM, 0, 0,
     "Verify that concurrent breakpoints are reported correctly");
@@ -8998,6 +8999,7 @@
     THREAD_CONCURRENT_WATCHPOINT_NUM,
     "Verify that concurrent breakpoints, watchpoints and signals are reported "
     "correctly and passed back to a handler function");
+#endif
 
 #endif /*defined(TWAIT_HAVE_STATUS)*/
 



Home | Main Index | Thread Index | Old Index