This is the mail archive of the mailing list for the GDB 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]

[commit] fix compilation error


Depending on what compiler one uses I can imagine not tripping over this,
so no worries.

cc1: warnings being treated as errors
../../src/gdb/python/py-value.c: In function 'valpy_call':
../../src/gdb/python/py-value.c:526: error: 'ftype' may be used uninitialized in this function
make: *** [py-value.o] Error 1


2011-10-07  Doug Evans  <>

	* python/py-value.c (valpy_call): Initialize ftype to avoid compiler

Index: python/py-value.c
RCS file: /cvs/src/src/gdb/python/py-value.c,v
retrieving revision 1.27
diff -u -p -r1.27 py-value.c
--- python/py-value.c	7 Oct 2011 13:46:11 -0000	1.27
+++ python/py-value.c	7 Oct 2011 22:02:11 -0000
@@ -515,7 +515,7 @@ valpy_call (PyObject *self, PyObject *ar
   volatile struct gdb_exception except;
   struct value *function = ((value_object *) self)->value;
   struct value **vargs = NULL;
-  struct type *ftype;
+  struct type *ftype = NULL;

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