This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]