pgsql: Fix compiler warning on typedef redeclaration

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Fix compiler warning on typedef redeclaration
Дата
Msg-id E1rdXiM-000Kyx-9R@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix compiler warning on typedef redeclaration

    bulk_write.c:78:3: error: redefinition of typedef 'BulkWriteState' is a C11 feature
[-Werror,-Wtypedef-redefinition]
    } BulkWriteState;
      ^
    ../../../../src/include/storage/bulk_write.h:20:31: note: previous definition is here
    typedef struct BulkWriteState BulkWriteState;
                                  ^
    1 error generated.

Per buildfarm animals 'sifaka' and 'longfin'.

Discussion: https://www.postgresql.org/message-id/9e1f63c3-ef16-404c-b3cb-859a96eaba39@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d360e3cc60e37d6d41ee78acf7bd5cb313b978c1

Modified Files
--------------
src/backend/storage/smgr/bulk_write.c | 4 ++--
src/include/storage/bulk_write.h      | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Introduce a new smgr bulk loading facility.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Avoid dangling-pointer problem with partitionwise joins under GE