Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Add __diagused, amd64 kernel ALL compiles again.



details:   https://anonhg.NetBSD.org/src/rev/0a5e6727670f
branches:  trunk
changeset: 932803:0a5e6727670f
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat May 16 17:42:06 2020 +0000

description:
Add __diagused, amd64 kernel ALL compiles again.

diffstat:

 sys/kern/subr_kcov.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 14bcd25ad9c8 -r 0a5e6727670f sys/kern/subr_kcov.c
--- a/sys/kern/subr_kcov.c      Sat May 16 17:37:28 2020 +0000
+++ b/sys/kern/subr_kcov.c      Sat May 16 17:42:06 2020 +0000
@@ -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 @@
        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 @@
 {
        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)) {



Home | Main Index | Thread Index | Old Index