pgsql: Fix use of offsetof()

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Fix use of offsetof()
Дата
Msg-id E1bq2HD-0002tP-Sl@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Use return instead of exit() in configure
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Separate enum from struct