Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Suppress uninitialized variable warnings in olde...



details:   https://anonhg.NetBSD.org/src/rev/08e8569d970b
branches:  trunk
changeset: 329500:08e8569d970b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Tue May 27 12:51:04 2014 +0000

description:
Suppress uninitialized variable warnings in older and dumber GCC.

diffstat:

 sys/dev/pci/agp_i810.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 304e9e3ad128 -r 08e8569d970b sys/dev/pci/agp_i810.c
--- a/sys/dev/pci/agp_i810.c    Tue May 27 09:24:56 2014 +0000
+++ b/sys/dev/pci/agp_i810.c    Tue May 27 12:51:04 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: agp_i810.c,v 1.79 2014/05/27 03:17:33 riastradh Exp $  */
+/*     $NetBSD: agp_i810.c,v 1.80 2014/05/27 12:51:04 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.79 2014/05/27 03:17:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.80 2014/05/27 12:51:04 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -376,6 +376,7 @@
                apbase = AGP_I915_GMADR;
                mmadr_bar = AGP_I915_MMADR;
                gtt_bar = AGP_I915_GTTADR;
+               gtt_off = ~(bus_addr_t)0; /* XXXGCC */
                break;
        case CHIP_I965:
                apbase = AGP_I965_GMADR;



Home | Main Index | Thread Index | Old Index