From c0d49dc8aa0bfe660a252aac583190c981d4ca7f Mon Sep 17 00:00:00 2001 From: kamil Date: Sat, 1 Apr 2017 23:28:02 +0000 Subject: [PATCH] Try to fix Clang/LLVM build Initialize a local variable. --- tests/kernel/arch/x86/t_ptrace_wait.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/kernel/arch/x86/t_ptrace_wait.c b/tests/kernel/arch/x86/t_ptrace_wait.c index 32a79ab86b7a..db5272f69a0c 100644 --- a/tests/kernel/arch/x86/t_ptrace_wait.c +++ b/tests/kernel/arch/x86/t_ptrace_wait.c @@ -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 -__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 #include @@ -412,7 +412,7 @@ dbregs_trap_variable(int reg, int cond, int len, bool write) #endif struct dbreg r1; size_t i; - volatile int watchme; + volatile int watchme = 0; union u dr7; struct ptrace_siginfo info;