OSDN Git Service

Start using flexible array members
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 16 Jun 2011 19:39:09 +0000 (22:39 +0300)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 16 Jun 2011 19:45:38 +0000 (22:45 +0300)
commitdbbba5279f66f95805c1e084e6f646d174931e56
treeeddb454b3d39b17d2e25491d906a6b05b4ea4e18
parent78475b0ecac4e7793366d2dba0cb875a8fde6bb0
Start using flexible array members

Flexible array members are a C99 feature that avoids "cheating" in the
declaration of variable-length arrays at the end of structs.  With
Autoconf support, this should be transparent for older compilers.

We start with one use in gist.h because gcc 4.6 started to raise a
warning there.  Over time, it can be expanded to other places in the
source, but they will likely need some review of sizeof and offsetof
usage.  The current change in gist.h appears to be safe in this
regard.
configure
configure.in
src/include/access/gist.h
src/include/pg_config.h.in