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/19dc3f2eca21
branches:  trunk
changeset: 972121:19dc3f2eca21
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 f2da17b7e718 -r 19dc3f2eca21 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