quieten GCC uninitialise variable warnings.

This commit is contained in:
mrg 2006-05-18 18:45:48 +00:00
parent a702cc5589
commit f599351ef6
3 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: aout2elf.c,v 1.11 2006/05/12 13:31:56 he Exp $
/* $NetBSD: aout2elf.c,v 1.12 2006/05/18 18:45:48 mrg Exp $
*
* Copyright 1997 Piermont Information Systems Inc.
* All rights reserved.
@ -142,6 +142,8 @@ handle_aout_libs(const char *dir, int op, const void *arg)
const char *destdir = NULL; /* XXX -Wuninitialized [many] */
int n;
destdir = NULL; /* XXX gcc */
dd = opendir(dir);
if (dd == NULL)
return -1;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kttcp.c,v 1.17 2005/12/11 12:20:53 christos Exp $ */
/* $NetBSD: kttcp.c,v 1.18 2006/05/18 18:45:48 mrg Exp $ */
/*
* Copyright (c) 2002 Wasabi Systems, Inc.
@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kttcp.c,v 1.17 2005/12/11 12:20:53 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: kttcp.c,v 1.18 2006/05/18 18:45:48 mrg Exp $");
#include <sys/param.h>
#include <sys/types.h>
@ -180,6 +180,8 @@ kttcp_recv(struct lwp *l, struct kttcp_io_args *kio)
struct timeval t0, t1;
unsigned long long len, done;
done = 0; /* XXX gcc */
if (kio->kio_totalsize > KTTCP_MAX_XMIT)
return EINVAL;

View File

@ -1,4 +1,4 @@
/* $NetBSD: rasops_bitops.h,v 1.8 2002/05/31 19:42:12 thorpej Exp $ */
/* $NetBSD: rasops_bitops.h,v 1.9 2006/05/18 18:45:48 mrg Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -169,6 +169,8 @@ NAME(copycols)(cookie, row, src, dst, num)
int32_t *sp, *dp, *srp, *drp;
struct rasops_info *ri;
sp = NULL; /* XXX gcc */
ri = (struct rasops_info *)cookie;
#ifdef RASOPS_CLIPPING