This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: New ARI warning Wed May 23 01:55:03 UTC 2012
- From: Tom Tromey <tromey at redhat dot com>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: dje at google dot com, pierre dot muller at ics-cnrs dot unistra dot fr, gdb-patches at sourceware dot org
- Date: Fri, 22 Jun 2012 10:04:39 -0600
- Subject: Re: New ARI warning Wed May 23 01:55:03 UTC 2012
- References: <20120523015503.GA25312@sourceware.org> <m3r4ubo7j0.fsf@redhat.com> <CADPb22QBYSRjoqrgX7p0d5KdAZ+kEk4Ga2YrfHMrm_t_yKCE6w@mail.gmail.com> <CADPb22QOSCV240MV2m0KmsXfNb9O5_WsA+7Jsjn1UJwigaNTrQ@mail.gmail.com> <4fbc9d77.0853b40a.641e.ffff90dbSMTPIN_ADDED@mx.google.com> <CADPb22Qi0Zda439aieEGu26+GWf0y8XzBUkcpg-Kw1BUcjvPNA@mail.gmail.com> <87bold8l4d.fsf@fleche.redhat.com> <201205282043.q4SKhksB010254@glazunov.sibelius.xs4all.nl>
>>>>> "Mark" == Mark Kettenis <mark.kettenis@xs4all.nl> writes:
Mark> So I'd have no objection to requiring C99, except for one
Mark> style-related issue. I really, really hate mixing declarations with
Mark> code (something that C99 started to allow). So if we switch to
Mark> requiring C99, I think we should add a rule to the coding standards
Mark> that variables may only be declared at the start of a block.
If there is no warning for it, then uses will slip in.
Tom