This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC, testsuite] Remove semicolon after 'return'
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 14 Mar 2013 10:29:44 +0000
- Subject: Re: [RFC, testsuite] Remove semicolon after 'return'
- References: <1363225646-23825-1-git-send-email-yao@codesourcery.com>
On 03/14/2013 01:47 AM, Yao Qi wrote:
> Hi,
> During the review of CTF patches, Tom pointed out the semicolon after
> "return" is not necessary.
Not just return, but pretty much after any command. ';' is
the command separator, and you don't need it if there's no
other command on the same line afterwards.
> Since people usually copy-paste test
> cases, the code semicolon-after-return will be easily propagated in
> the testsuite. This patch remove all the semicolons after return.
Thanks, this is great.
>
> Tested on x86_64-linux native and gdbserver. Is it OK?
Looks good to me.
--
Pedro Alves