Module Name:    src
Committed By:   christos
Date:           Mon May  6 00:08:13 UTC 2019

Modified Files:
        src/tests/lib/libc/sys: t_ptrace_amd64_wait.h t_ptrace_i386_wait.h

Log Message:
fix unused variable warnings.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libc/sys/t_ptrace_amd64_wait.h
cvs rdiff -u -r1.6 -r1.7 src/tests/lib/libc/sys/t_ptrace_i386_wait.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/sys/t_ptrace_amd64_wait.h
diff -u src/tests/lib/libc/sys/t_ptrace_amd64_wait.h:1.8 src/tests/lib/libc/sys/t_ptrace_amd64_wait.h:1.9
--- src/tests/lib/libc/sys/t_ptrace_amd64_wait.h:1.8	Sun May  5 14:16:39 2019
+++ src/tests/lib/libc/sys/t_ptrace_amd64_wait.h	Sun May  5 20:08:13 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_ptrace_amd64_wait.h,v 1.8 2019/05/05 18:16:39 mgorny Exp $	*/
+/*	$NetBSD: t_ptrace_amd64_wait.h,v 1.9 2019/05/06 00:08:13 christos Exp $	*/
 
 /*-
  * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -122,9 +122,9 @@ ATF_TC_HEAD(x86_64_regs_gp_read, tc)
 ATF_TC_BODY(x86_64_regs_gp_read, tc)
 {
 	const int exitval = 5;
-	const int sigval = SIGTRAP;
 	pid_t child, wpid;
 #if defined(TWAIT_HAVE_STATUS)
+	const int sigval = SIGTRAP;
 	int status;
 #endif
 	struct reg gpr;
@@ -209,9 +209,9 @@ ATF_TC_HEAD(x86_64_regs_r8_read, tc)
 ATF_TC_BODY(x86_64_regs_r8_read, tc)
 {
 	const int exitval = 5;
-	const int sigval = SIGTRAP;
 	pid_t child, wpid;
 #if defined(TWAIT_HAVE_STATUS)
+	const int sigval = SIGTRAP;
 	int status;
 #endif
 	struct reg gpr;

Index: src/tests/lib/libc/sys/t_ptrace_i386_wait.h
diff -u src/tests/lib/libc/sys/t_ptrace_i386_wait.h:1.6 src/tests/lib/libc/sys/t_ptrace_i386_wait.h:1.7
--- src/tests/lib/libc/sys/t_ptrace_i386_wait.h:1.6	Sun May  5 14:15:40 2019
+++ src/tests/lib/libc/sys/t_ptrace_i386_wait.h	Sun May  5 20:08:13 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_ptrace_i386_wait.h,v 1.6 2019/05/05 18:15:40 mgorny Exp $	*/
+/*	$NetBSD: t_ptrace_i386_wait.h,v 1.7 2019/05/06 00:08:13 christos Exp $	*/
 
 /*-
  * Copyright (c) 2016, 2017, 2018, 2019 The NetBSD Foundation, Inc.
@@ -112,9 +112,9 @@ ATF_TC_HEAD(i386_regs_gp_read, tc)
 ATF_TC_BODY(i386_regs_gp_read, tc)
 {
 	const int exitval = 5;
-	const int sigval = SIGTRAP;
 	pid_t child, wpid;
 #if defined(TWAIT_HAVE_STATUS)
+	const int sigval = SIGTRAP;
 	int status;
 #endif
 	struct reg gpr;
@@ -185,9 +185,9 @@ ATF_TC_HEAD(i386_regs_ebp_esp_read, tc)
 ATF_TC_BODY(i386_regs_ebp_esp_read, tc)
 {
 	const int exitval = 5;
-	const int sigval = SIGTRAP;
 	pid_t child, wpid;
 #if defined(TWAIT_HAVE_STATUS)
+	const int sigval = SIGTRAP;
 	int status;
 #endif
 	struct reg gpr;

Reply via email to