This is the mail archive of the gdb-patches@sourceware.org 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] init for gcc -Wall


Hi.  Just some tweaks to fix the build.

2013-02-28  Doug Evans  <dje@google.com>

	* python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
	* python/python.c (gdbpy_find_pc_line): Ditto.

Index: python/py-finishbreakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/python/py-finishbreakpoint.c,v
retrieving revision 1.11
diff -u -p -r1.11 py-finishbreakpoint.c
--- python/py-finishbreakpoint.c	28 Feb 2013 19:21:44 -0000	1.11
+++ python/py-finishbreakpoint.c	28 Feb 2013 19:58:04 -0000
@@ -160,7 +160,8 @@ bpfinishpy_init (PyObject *self, PyObjec
   int type = bp_breakpoint;
   PyObject *frame_obj = NULL;
   int thread;
-  struct frame_info *frame, *prev_frame = NULL;
+  struct frame_info *frame = NULL; /* init for gcc -Wall */
+  struct frame_info *prev_frame = NULL;
   struct frame_id frame_id;
   PyObject *internal = NULL;
   int internal_bp = 0;
Index: python/python.c
===================================================================
RCS file: /cvs/src/src/gdb/python/python.c,v
retrieving revision 1.108
diff -u -p -r1.108 python.c
--- python/python.c	28 Feb 2013 19:25:42 -0000	1.108
+++ python/python.c	28 Feb 2013 19:58:04 -0000
@@ -740,7 +740,7 @@ gdbpy_find_pc_line (PyObject *self, PyOb
 {
   gdb_py_ulongest pc_llu;
   volatile struct gdb_exception except;
-  PyObject *result;
+  PyObject *result = NULL; /* init for gcc -Wall */
 
   if (!PyArg_ParseTuple (args, GDB_PY_LLU_ARG, &pc_llu))
     return NULL;


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