Module Name: src
Committed By: kre
Date: Sat Mar 9 09:51:29 UTC 2019
Modified Files:
src/sys/arch/xen/xen: clock.c
Log Message:
error in xen_resumeclocks() is __diagused.
Avoid compile warning (-->error) when ! options DIAGNOSTIC.
To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/arch/xen/xen/clock.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/xen/xen/clock.c
diff -u src/sys/arch/xen/xen/clock.c:1.77 src/sys/arch/xen/xen/clock.c:1.78
--- src/sys/arch/xen/xen/clock.c:1.77 Sat Feb 2 12:32:55 2019
+++ src/sys/arch/xen/xen/clock.c Sat Mar 9 09:51:29 2019
@@ -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 @@ xen_resumeclocks(struct cpu_info *ci)
{
char intr_xname[INTRDEVNAMEBUF];
int evtch;
- int error;
+ int error __diagused;
KASSERT(ci == curcpu());
KASSERT(kpreempt_disabled());