From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Start using flexible array members |
Date: | 2011-06-16 19:45:53 |
Message-ID: | E1QXIVl-0007XK-Gm@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/dbbba5279f66f95805c1e084e6f646d174931e56
Modified Files
--------------
configure | 71 ++++++++++++++++++++++++++++++++++++++++++++
configure.in | 1 +
src/include/access/gist.h | 2 +-
src/include/pg_config.h.in | 9 +++++
4 files changed, 82 insertions(+), 1 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2011-06-16 20:45:41 | pgsql: Avoid compiler warnings due to possibly unused variables |
Previous Message | Heikki Linnakangas | 2011-06-16 18:21:19 | pgsql: Update README-SSI. Add a section to describe the "dangerous stru |