The use of a local variable is conditional on FBDEBUG, so make the

declaration too.  Makes this build without FBDEBUG defined.
This commit is contained in:
he 2006-10-10 23:09:21 +00:00
parent 55ddfc9aae
commit 4072b525cc

View File

@ -1,4 +1,4 @@
/* $NetBSD: bivideo.c,v 1.24 2006/10/09 10:33:42 peter Exp $ */
/* $NetBSD: bivideo.c,v 1.25 2006/10/10 23:09:21 he Exp $ */
/*-
* Copyright (c) 1999-2001
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bivideo.c,v 1.24 2006/10/09 10:33:42 peter Exp $");
__KERNEL_RCSID(0, "$NetBSD: bivideo.c,v 1.25 2006/10/10 23:09:21 he Exp $");
#ifdef _KERNEL_OPT
#include "opt_hpcfb.h"
@ -519,7 +519,9 @@ bivideo_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct lwp *l)
sc->sc_max_contrast < dispparam->curval)
return (EINVAL);
if (sc->sc_max_contrast > 0) {
#ifdef FBDEBUG
int org = sc->sc_contrast;
#endif
bivideo_set_contrast(sc, dispparam->curval);
VPRINTF(("bivideo_ioctl: SET:CONTRAST org=%d, current=%d\n", org, sc->sc_contrast));
return 0;
@ -535,7 +537,9 @@ bivideo_ioctl(void *v, u_long cmd, caddr_t data, int flag, struct lwp *l)
sc->sc_max_brightness < dispparam->curval)
return (EINVAL);
if (sc->sc_max_brightness > 0) {
#ifdef FBDEBUG
int org = sc->sc_brightness;
#endif
bivideo_set_brightness(sc, dispparam->curval);
VPRINTF(("bivideo_ioctl: SET:BRIGHTNESS org=%d, current=%d\n", org, sc->sc_brightness));
return 0;