[pypy-dev] gcc warnings / errors in translation

Amaury Forgeot d'Arc amauryfa at gmail.com
Tue Feb 12 08:13:35 CET 2013


2013/2/12 Justin Bogner <mail at justinbogner.com>

> Armin Rigo <arigo at tunes.org> writes:
> > Ah, indeed.  We declare most arrays as "itemtype x[1]", so gcc complains
> > when it can prove we do accesses at an index > 0.
>
> Is there a good reason not to use the C99 "itemtype x[]" or even the old
> GCC extension "itemtype x[0]"? These won't trigger this warning, which
> means we could leave it on in case a legitimate case crops up.


It seems that Microsoft compilers also support this extension:
http://msdn.microsoft.com/en-us/library/b6fae073(v=vs.71).aspx


-- 
Amaury Forgeot d'Arc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20130212/f79f23da/attachment-0001.html>


More information about the pypy-dev mailing list