From 477737598a74f53e9efc62bf18a59fdba80bb946 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Wed, 15 Mar 2006 11:50:32 +0000 Subject: [PATCH] A couple of initialisations to keep gcc-4.1.0 happy. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5765 --- coregrind/m_aspacemgr/aspacemgr.c | 2 ++ coregrind/m_main.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/coregrind/m_aspacemgr/aspacemgr.c b/coregrind/m_aspacemgr/aspacemgr.c index d64b06241f..c7676f1704 100644 --- a/coregrind/m_aspacemgr/aspacemgr.c +++ b/coregrind/m_aspacemgr/aspacemgr.c @@ -3228,6 +3228,8 @@ static void parse_procselfmaps ( UWord maj, min, dev; ULong foffset; + foffset = ino = 0; /* keep gcc-4.1.0 happy */ + read_procselfmaps_into_buf(); aspacem_assert('\0' != procmap_buf[0] && 0 != buf_n_tot); diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 9faf0c5540..70fb5491aa 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1951,7 +1951,7 @@ Int main(Int argc, HChar **argv, HChar **envp) Addr initial_client_TOC = 0; Addr clstack_top = 0; SizeT clstack_max_size = 0; - UInt* client_auxv; + UInt* client_auxv = NULL; Int loglevel, i; Bool logging_to_fd; struct vki_rlimit zero = { 0, 0 }; -- 2.47.2