Remove unused local variable
authorYao Qi <yao@codesourcery.com>
Wed, 8 Oct 2014 11:25:59 +0000 (19:25 +0800)
committerYao Qi <yao@codesourcery.com>
Thu, 9 Oct 2014 01:48:42 +0000 (09:48 +0800)
As a result of commit b57bacec, local variable 'printed' is no longer
used.  This patch is to remove it.

gdb:

2014-10-09  Yao Qi  <yao@codesourcery.com>

* infrun.c (handle_signal_stop): Remove local variable 'printed'.

gdb/ChangeLog
gdb/infrun.c

index 3796a9968e22d49f9b696ef25b6dd0227ac35976..ee82f1f448f2e0714db0ef9d847a23a70cc05af3 100644 (file)
@@ -1,3 +1,8 @@
+2014-10-09  Yao Qi  <yao@codesourcery.com>
+
+       * infrun.c (handle_signal_stop): Remove local variable
+       'printed'.
+
 2014-10-08  Stan Shebs  <stan@codesourcery.com>
 
        * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
index 7b437858ec8b09b992f92a8827bcbd07c68db909..468117587bab981cb9c1234aa3e6d83a7b4ccda8 100644 (file)
@@ -4425,7 +4425,6 @@ handle_signal_stop (struct execution_control_state *ecs)
   if (random_signal)
     {
       /* Signal not for debugging purposes.  */
-      int printed = 0;
       struct inferior *inf = find_inferior_pid (ptid_get_pid (ecs->ptid));
       enum gdb_signal stop_signal = ecs->event_thread->suspend.stop_signal;