pgsql: Fix use of offsetof() - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Fix use of offsetof()
Date
Msg-id E1bq2HD-0002tP-Sl@gemulon.postgresql.org
Whole thread Raw
List 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@iki.fi>
Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Use return instead of exit() in configure
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Separate enum from struct