From 72b8dfe22a116fe434ec02112814c25874cbcd3b Mon Sep 17 00:00:00 2001 From: uwe Date: Sat, 1 Nov 2003 03:45:52 +0000 Subject: [PATCH] In hd64461video_update_videochip_status init depth to supress bogus -Wuninitialized. --- sys/arch/hpcsh/dev/hd64461/hd64461video.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/hpcsh/dev/hd64461/hd64461video.c b/sys/arch/hpcsh/dev/hd64461/hd64461video.c index fbae3dc39f36..82d2f587204c 100644 --- a/sys/arch/hpcsh/dev/hd64461/hd64461video.c +++ b/sys/arch/hpcsh/dev/hd64461/hd64461video.c @@ -1,4 +1,4 @@ -/* $NetBSD: hd64461video.c,v 1.19 2003/08/02 22:39:13 uwe Exp $ */ +/* $NetBSD: hd64461video.c,v 1.20 2003/11/01 03:45:52 uwe Exp $ */ /*- * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: hd64461video.c,v 1.19 2003/08/02 22:39:13 uwe Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hd64461video.c,v 1.20 2003/11/01 03:45:52 uwe Exp $"); #include "debug_hpcsh.h" // #define HD64461VIDEO_HWACCEL @@ -859,6 +859,8 @@ hd64461video_update_videochip_status(struct hd64461video_chip *hvc) int i; int depth, width, height; + depth = 0; /* XXX: -Wuninitialized */ + /* display mode */ r = hd64461_reg_read_2(HD64461_LCDLDR3_REG16); i = HD64461_LCDLDR3_CG(r);