Silence gcc 4.8

This commit is contained in:
skrll 2013-12-18 12:43:59 +00:00
parent 612b1d90d4
commit cfac49f5f3
3 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: GENERIC,v 1.354 2013/10/15 19:27:48 jdc Exp $
# $NetBSD: GENERIC,v 1.355 2013/12/18 12:43:59 skrll Exp $
#
# This machine description file is used to generate the default NetBSD
# kernel.
@ -19,7 +19,7 @@ include "arch/alpha/conf/std.alpha"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
ident "GENERIC-$Revision: 1.354 $"
ident "GENERIC-$Revision: 1.355 $"
maxusers 32
@ -59,7 +59,7 @@ options NTP # kernel PLL for NTP
#options KMEMSTATS # Collect kmem usage statistics
options DDB # kernel debugger
options DDB_HISTORY_SIZE=512 # enable history editing in DDB
#makeoptions DEBUG="-g"
makeoptions DEBUG="-g"
#makeoptions DEBUGLIST="pattern1 pattern2 ..."
#options KGDB # Remote kernel GDB support

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_1000.c,v 1.24 2012/02/06 02:14:14 matt Exp $ */
/* $NetBSD: pci_1000.c,v 1.25 2013/12/18 12:43:59 skrll Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -60,7 +60,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: pci_1000.c,v 1.24 2012/02/06 02:14:14 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: pci_1000.c,v 1.25 2013/12/18 12:43:59 skrll Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -149,7 +149,7 @@ dec_1000_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
pcitag_t bustag = pa->pa_intrtag;
int buspin = pa->pa_intrpin;
pci_chipset_tag_t pc = pa->pa_pc;
int device;
int device = 0; /* XXX gcc */
if (buspin == 0) /* No IRQ used. */
return 1;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pci_1000a.c,v 1.26 2012/02/06 02:14:15 matt Exp $ */
/* $NetBSD: pci_1000a.c,v 1.27 2013/12/18 12:43:59 skrll Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -60,7 +60,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: pci_1000a.c,v 1.26 2012/02/06 02:14:15 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: pci_1000a.c,v 1.27 2013/12/18 12:43:59 skrll Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -153,7 +153,7 @@ dec_1000a_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp)
pcitag_t bustag = pa->pa_intrtag;
int buspin = pa->pa_intrpin;
pci_chipset_tag_t pc = pa->pa_pc;
int imrbit, device;
int imrbit, device = 0; /* XXX gcc */
/*
* Get bit number in mystery ICU imr
*/