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]

Re: Code formatting [Re: [patch] s390*: watchpoints regression [repost]]


> Date: Sun, 18 Dec 2011 14:52:09 +0100 (CET)
> From: Mark Kettenis <mark.kettenis@xs4all.nl>
> CC: brobecker@adacore.com, eliz@gnu.org, gdb-patches@sourceware.org,
>         pedro@codesourcery.com
> 
> > >     if ([...])
> > >       /* This is a comment that ...  */
> > >       return;
> > 
> > This is a bug from the first sight as there are two C statements attached to
> > an `if' conditional.  Two statements always need a block.  This is a bug.
> > 
> > I really do not have time to interrupt myself each time, several times
> > a minute, looking at the code starting examining what those two statements
> > semantically are, and therefore if they really require a block or not.
> 
> I agree with Jan here.

Any reasons why no one says anything about the alternative I
suggested?  AFAIU, it is free from all the disadvantages mentioned
here.


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