Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xen error in xen_resumeclocks() is __diagused.



details:   https://anonhg.NetBSD.org/src/rev/fd5e457b252a
branches:  trunk
changeset: 997475:fd5e457b252a
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Mar 09 09:51:29 2019 +0000

description:
error in xen_resumeclocks() is __diagused.
Avoid compile warning (-->error) when ! options DIAGNOSTIC.

diffstat:

 sys/arch/xen/xen/clock.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2180ffda0f0f -r fd5e457b252a sys/arch/xen/xen/clock.c
--- a/sys/arch/xen/xen/clock.c  Sat Mar 09 09:09:56 2019 +0000
+++ b/sys/arch/xen/xen/clock.c  Sat Mar 09 09:51:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.77 2019/02/02 12:32:55 cherry Exp $        */
+/*     $NetBSD: clock.c,v 1.78 2019/03/09 09:51:29 kre Exp $   */
 
 /*-
  * Copyright (c) 2017, 2018 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.77 2019/02/02 12:32:55 cherry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.78 2019/03/09 09:51:29 kre Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -751,7 +751,7 @@
 {
        char intr_xname[INTRDEVNAMEBUF];
        int evtch;
-       int error;
+       int error __diagused;
 
        KASSERT(ci == curcpu());
        KASSERT(kpreempt_disabled());



Home | Main Index | Thread Index | Old Index