[cfe-dev] -Warray-bounds seems over-zealous on Clang
peter at 2ndquadrant.com
Tue Jul 12 08:54:05 PDT 2011
Saying "just use C99" isn't a practical solution. This is a mature
project with a large codebase, that targets many compilers, including,
for a large number of reasons, Visual Studio - Microsoft have
absolutely no interest in pursuing C99 support.
Besides, the chances of Clang actually helpfully diagnosing a problem
with the delta between how GCC does -Warray-bounds and how Clang does
it are slim - how often are these problems statically detectable? This
Even if your position wasn't unreasonable, which it is, Clang still
gives this warning when the -c89 flag is given.
Peter Geoghegan http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services
More information about the cfe-dev