Module Name: src Committed By: kamil Date: Sat Apr 1 23:28:02 UTC 2017
Modified Files: src/tests/kernel/arch/x86: t_ptrace_wait.c Log Message: Try to fix Clang/LLVM build Initialize a local variable. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/tests/kernel/arch/x86/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/kernel/arch/x86/t_ptrace_wait.c diff -u src/tests/kernel/arch/x86/t_ptrace_wait.c:1.7 src/tests/kernel/arch/x86/t_ptrace_wait.c:1.8 --- src/tests/kernel/arch/x86/t_ptrace_wait.c:1.7 Sat Apr 1 23:25:08 2017 +++ src/tests/kernel/arch/x86/t_ptrace_wait.c Sat Apr 1 23:28:02 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: t_ptrace_wait.c,v 1.7 2017/04/01 23:25:08 kamil Exp $ */ +/* $NetBSD: t_ptrace_wait.c,v 1.8 2017/04/01 23:28:02 kamil Exp $ */ /*- * Copyright (c) 2016 The NetBSD Foundation, Inc. @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: t_ptrace_wait.c,v 1.7 2017/04/01 23:25:08 kamil Exp $"); +__RCSID("$NetBSD: t_ptrace_wait.c,v 1.8 2017/04/01 23:28:02 kamil Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -412,7 +412,7 @@ dbregs_trap_variable(int reg, int cond, #endif struct dbreg r1; size_t i; - volatile int watchme; + volatile int watchme = 0; union u dr7; struct ptrace_siginfo info;