This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[python] [commit] Workaroud Fedora 10 gcc-4.3.2-7 false warning.
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: archer at sourceware dot org
- Date: Sun, 1 Mar 2009 15:32:04 +0100
- Subject: [python] [commit] Workaroud Fedora 10 gcc-4.3.2-7 false warning.
commit 3d0c4bcb05d5112ca43433e3c0fd5185c9ea945e
* python/python-frame.c (frapy_read_var_value): Initialize `var'.
---
gdb/python/python-frame.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdb/python/python-frame.c b/gdb/python/python-frame.c
index ef1c178..1f152b8 100644
--- a/gdb/python/python-frame.c
+++ b/gdb/python/python-frame.c
@@ -401,7 +401,7 @@ frapy_read_var_value (PyObject *self, PyObject *args)
{
struct frame_info *frame;
PyObject *sym_obj;
- struct symbol *var;
+ struct symbol *var = NULL; /* gcc-4.3.2 false warning. */
struct value *val = NULL;
volatile struct gdb_exception except;
--
1.6.0.6