On Tue, Feb 12, 2013 at 6:57 AM, Justin Bogner <m...@justinbogner.com> wrote: > Armin Rigo <ar...@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. > > As far as I know, the only noticeable difference between [], [0], and > [1] for flexible arrays is that sizeof has different semantics, but > that's usually not a big deal.
I think we use sizeof. How is it better than just turning off the warning actually? There are no legitimate cases _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev