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: New ARI warning Wed May 26 01:54:51 UTC 2010


> > > 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


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