pgsql: Fix use of offsetof()

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix use of offsetof()
Date: 2016-09-30 18:11:15
Message-ID: E1bq2HD-0002tP-Sl@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix use of offsetof()

Using offsetof() with a run-time computed argument is not allowed in
either C or C++. Apparently, gcc allows it, but g++ doesn't.

Reviewed-by: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Reviewed-by: Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f1a469c9f1cfeab9f9c7d4a5d3e75892e7b6f60c

Modified Files
--------------
contrib/bloom/blutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2016-09-30 19:12:51 pgsql: Separate enum from struct
Previous Message Magnus Hagander 2016-09-30 09:28:56 pgsql: Retry opening new segments in pg_xlogdump --folllow