This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Refactor observer.sh to cleanup unused vars
- From: Pedro Alves <palves at redhat dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 24 Apr 2012 19:02:34 +0100
- Subject: Re: [PATCH] Refactor observer.sh to cleanup unused vars
- References: <m3ty0at632.fsf@redhat.com> <m31undrp8d.fsf@redhat.com>
On 04/24/2012 06:53 PM, Sergio Durigan Junior wrote:
> Hi,
>
> As requested by Pedro, this is the change to `observer.sh' made to
> cleanup the unused variable `args'.
Thanks.
> I noticed that the variable is only
> used as an argument for calling `notify', and in some cases `notify'
> doesn't take arguments, thus leading to an unused `args' hanging
> around. This patch removes it by conditionally declaring the variable.
>
> OK to apply?
Okay.
> 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
>
> * observer.sh: Conditionally declare `args', thus cleaning up
> unused cases.
--
Pedro Alves