pgsql: Suppress possibly-uninitialized-variable warnings from gcc 4.5.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Suppress possibly-uninitialized-variable warnings from gcc 4.5.
Дата
Msg-id E1PgmOP-0007V4-Km@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Suppress possibly-uninitialized-variable warnings from gcc 4.5.

It appears that gcc 4.5 can issue such warnings for whole structs, not
just scalar variables as in the past.  Refactor some pg_dump code slightly
so that the OutputContext local variables are always initialized, even
if they won't be used.  It's cheap enough to not be worth worrying about.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=e2627258c3cc43b8b00c5c29c35933a33259e718

Modified Files
--------------
src/bin/pg_dump/pg_backup_archiver.c |   44 ++++++++++++++++++++++-----------
src/bin/pg_dump/pg_backup_archiver.h |    6 ----
2 files changed, 29 insertions(+), 21 deletions(-)


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

Предыдущее
От: cunha17@pgfoundry.org (User Cunha17)
Дата:
Сообщение: snapshot - src: FIX: for forum thead
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Suppress "control reaches end of non-void function" warning from