From 4f0e45be321d000ce62f565f307bd3e43ef6bc0a Mon Sep 17 00:00:00 2001 From: hannken Date: Sat, 16 May 2020 17:42:06 +0000 Subject: [PATCH] Add __diagused, amd64 kernel ALL compiles again. --- sys/kern/subr_kcov.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/subr_kcov.c b/sys/kern/subr_kcov.c index a3dd928bcbd8..ac3f31d106fb 100644 --- a/sys/kern/subr_kcov.c +++ b/sys/kern/subr_kcov.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr_kcov.c,v 1.14 2020/05/15 13:09:02 maxv Exp $ */ +/* $NetBSD: subr_kcov.c,v 1.15 2020/05/16 17:42:06 hannken Exp $ */ /* * Copyright (c) 2019-2020 The NetBSD Foundation, Inc. @@ -274,7 +274,7 @@ kcov_remote_enter(uint64_t subsystem, uint64_t id) struct lwp *l = curlwp; kcov_remote_t *kr; kcov_t *kd; - u_int refs; + u_int refs __diagused; kr = kcov_remote_find(subsystem, id); if (__predict_false(kr == NULL)) { @@ -296,7 +296,7 @@ kcov_remote_leave(uint64_t subsystem, uint64_t id) { struct lwp *l = curlwp; kcov_remote_t *kr; - u_int refs; + u_int refs __diagused; kr = kcov_remote_find(subsystem, id); if (__predict_false(kr == NULL)) {