From 6f43c46f4b7ae3ae4506773de7d41c61bd2be4fe Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Mon, 23 Feb 2009 03:07:14 +0000 Subject: [PATCH] (tiny change) * symtab.c (find_line_symtab): Initialize exact to avoid a compiler warning. --- gdb/ChangeLog | 5 +++++ gdb/symtab.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f0de11f7a51..bcb4a50d5ee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-02-23 Jay Krell (tiny change) + + * symtab.c (find_line_symtab): Initialize exact to avoid + a compiler warning. + 2009-02-23 Pedro Alves * i386-linux-nat.c (i386_linux_fetch_inferior_registers): Pass diff --git a/gdb/symtab.c b/gdb/symtab.c index 1ef92a8d916..d51c7aa6c2e 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2361,7 +2361,7 @@ find_pc_line (CORE_ADDR pc, int notcurrent) struct symtab * find_line_symtab (struct symtab *symtab, int line, int *index, int *exact_match) { - int exact; + int exact = 0; /* Initialized here to avoid a compiler warning. */ /* BEST_INDEX and BEST_LINETABLE identify the smallest linenumber > LINE so far seen. */ -- 2.30.2