Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so appease gcc -Wuninitialized
details: https://anonhg.NetBSD.org/src/rev/3758f5131ede
branches: trunk
changeset: 581415:3758f5131ede
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Jun 01 14:14:55 2005 +0000
description:
appease gcc -Wuninitialized
diffstat:
libexec/ld.elf_so/arch/i386/mdreloc.c | 4 ++--
libexec/ld.elf_so/map_object.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r f2363846578b -r 3758f5131ede libexec/ld.elf_so/arch/i386/mdreloc.c
--- a/libexec/ld.elf_so/arch/i386/mdreloc.c Wed Jun 01 14:05:25 2005 +0000
+++ b/libexec/ld.elf_so/arch/i386/mdreloc.c Wed Jun 01 14:14:55 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdreloc.c,v 1.19 2003/07/24 10:12:28 skrll Exp $ */
+/* $NetBSD: mdreloc.c,v 1.20 2005/06/01 14:15:13 lukem Exp $ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -49,7 +49,7 @@
#ifdef COMBRELOC
unsigned long lastsym = -1;
#endif
- Elf_Addr target;
+ Elf_Addr target = 0;
for (rel = obj->rel; rel < obj->rellim; rel++) {
Elf_Addr *where;
diff -r f2363846578b -r 3758f5131ede libexec/ld.elf_so/map_object.c
--- a/libexec/ld.elf_so/map_object.c Wed Jun 01 14:05:25 2005 +0000
+++ b/libexec/ld.elf_so/map_object.c Wed Jun 01 14:14:55 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: map_object.c,v 1.31 2004/10/22 05:39:56 skrll Exp $ */
+/* $NetBSD: map_object.c,v 1.32 2005/06/01 14:14:55 lukem Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: map_object.c,v 1.31 2004/10/22 05:39:56 skrll Exp $");
+__RCSID("$NetBSD: map_object.c,v 1.32 2005/06/01 14:14:55 lukem Exp $");
#endif /* not lint */
#include <errno.h>
@@ -67,7 +67,7 @@
Elf_Phdr *segs[2];
int nsegs;
caddr_t mapbase = MAP_FAILED;
- size_t mapsize;
+ size_t mapsize = 0;
int mapflags;
Elf_Off base_offset;
#ifdef MAP_ALIGNED
Home |
Main Index |
Thread Index |
Old Index