Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons Make it compile w/o warnings for !VCONS_DRAW_...



details:   https://anonhg.NetBSD.org/src/rev/31532e4fc840
branches:  trunk
changeset: 368551:31532e4fc840
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jul 18 11:09:22 2022 +0000

description:
Make it compile w/o warnings for !VCONS_DRAW_INTR

diffstat:

 sys/dev/wscons/wsdisplay_vcons.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r fe8c61c1af10 -r 31532e4fc840 sys/dev/wscons/wsdisplay_vcons.c
--- a/sys/dev/wscons/wsdisplay_vcons.c  Mon Jul 18 04:32:35 2022 +0000
+++ b/sys/dev/wscons/wsdisplay_vcons.c  Mon Jul 18 11:09:22 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wsdisplay_vcons.c,v 1.63 2022/07/17 20:23:17 riastradh Exp $ */
+/*     $NetBSD: wsdisplay_vcons.c,v 1.64 2022/07/18 11:09:22 martin Exp $ */
 
 /*-
  * Copyright (c) 2005, 2006 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.63 2022/07/17 20:23:17 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.64 2022/07/18 11:09:22 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1618,10 +1618,11 @@
 void
 vcons_enable_polling(struct vcons_data *vd)
 {
-       struct vcons_data_private *vdp = vd->private;
        struct vcons_screen *scr = vd->active;
 
 #ifdef VCONS_DRAW_INTR
+       struct vcons_data_private *vdp = vd->private;
+
        vdp->use_intr = 0;
 #endif
 



Home | Main Index | Thread Index | Old Index