This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: New ARI warning Wed May 26 01:54:51 UTC 2010
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: 'Doug Evans' <dje at google dot com>, gdb-patches at sourceware dot org
- Date: Wed, 2 Jun 2010 16:08:19 -0700
- Subject: Re: New ARI warning Wed May 26 01:54:51 UTC 2010
- References: <20100526015451.GA24207@sourceware.org> <AANLkTin1WZ2kXmsG-BjRKD8LN1_LVZIvZrBqtpqHxpJO@mail.gmail.com> <000901cafcaa$80ddf470$8299dd50$@muller@ics-cnrs.unistra.fr>
> > > gdb/python/py-cmd.c:192: ? ? ? ?error ("%s", msg);
> > >
> >
> > There were already a couple of uses of error ("%s", ...) so I figured
> > it was safe.
>
> Of course, translation of "%s" into another language does make sense!
>
> > OOC, is this why source.c has:
> >
> > error (("%s"), msg);
>
> I suspect that the braces around "%s" are exactly here for that reason:
> they avoid getting this ARI report.
> Does anyone have another idea of the utility of such a wrapping?
>
> I could probably try to improve the ARI rule
> so that it does not complain if the string is just "%s",
> but I would like to be sure that I am not missing some information here.
I don't think anyone really answered the above. I don't see any issue
either way, and I don't have a preference. ISTM that the simplest would
probably be to use ("%s"), instead of adding an exception for "%s".
--
Joel