[cfe-dev] -Warray-bounds seems over-zealous on Clang
peter at 2ndquadrant.com
Wed Jul 13 15:23:18 PDT 2011
On 13 July 2011 21:10, Nicola Gigante <nicola.gigante at gmail.com> wrote:
> I've tried to write such a patch, as it seemed simple, but I'm stuck because
> I don't know enough
> about internal clang's APIs yet.
> Until now, I've come up with the simple patch attached, that disables the
> warning if
> the array is declared inside a record type and the size is one.
Thanks for your efforts. I wish I was familiar enough with the Clang
code base to help.
Peter Geoghegan http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services
More information about the cfe-dev