Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sun Avoid unused variables if RASTERCONS_FULLSCREEN ...



details:   https://anonhg.NetBSD.org/src/rev/c6a3deaa4879
branches:  trunk
changeset: 511681:c6a3deaa4879
user:      pk <pk%NetBSD.org@localhost>
date:      Sun Jun 24 15:47:45 2001 +0000

description:
Avoid unused variables if RASTERCONS_FULLSCREEN is defined. (see PR#13231)

diffstat:

 sys/dev/sun/fb.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 22744f8b10d3 -r c6a3deaa4879 sys/dev/sun/fb.c
--- a/sys/dev/sun/fb.c  Sun Jun 24 14:22:43 2001 +0000
+++ b/sys/dev/sun/fb.c  Sun Jun 24 15:47:45 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fb.c,v 1.2 2000/10/31 21:54:35 pk Exp $ */
+/*     $NetBSD: fb.c,v 1.3 2001/06/24 15:47:45 pk Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -357,7 +357,10 @@
 {
        struct rconsole *rc = &fb->fb_rcons;
        struct rasops_info *ri = &fb->fb_rinfo;
-       int maxrow, maxcol, *row, *col;
+       int maxrow, maxcol;
+#if !defined(RASTERCONS_FULLSCREEN)
+       int *row, *col;
+#endif
 
        /* Set up what rasops needs to know about */
        bzero(ri, sizeof *ri);



Home | Main Index | Thread Index | Old Index