* python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
authorDoug Evans <dje@google.com>
Thu, 28 Feb 2013 20:01:10 +0000 (20:01 +0000)
committerDoug Evans <dje@google.com>
Thu, 28 Feb 2013 20:01:10 +0000 (20:01 +0000)
* python/python.c (gdbpy_find_pc_line): Ditto.

gdb/ChangeLog
gdb/python/py-finishbreakpoint.c
gdb/python/python.c

index c79359371850636e1f4b4cf51be63593018f79a0..d92a7037397efdbb74e1001de277eecd22f6d882 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2013-02-28  Tom Tromey  <tromey@redhat.com>
 
        * contrib/excheck.py: New file.
index d3d6bfdb89709efc9f3c1e9c41380a6e37b472ad..6e095b593fce885d3f4c4ba2d00507f6b5e2e3e4 100644 (file)
@@ -160,7 +160,8 @@ bpfinishpy_init (PyObject *self, PyObject *args, PyObject *kwargs)
   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 405eb5b6551eba9ab6b57924863297233ecfcfcc..24be9068ca70b5b7aaae43761972486b44e198e0 100644 (file)
@@ -740,7 +740,7 @@ gdbpy_find_pc_line (PyObject *self, PyObject *args)
 {
   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;