pgsql: Suppress uninitialized-variable warning from less-bright compile

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Suppress uninitialized-variable warning from less-bright compile
Дата
Msg-id E1YRjb8-0004lS-HN@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Suppress uninitialized-variable warning from less-bright compilers.

The type variable must get set on first iteration of the while loop,
but there are reasonably modern gcc versions that don't realize that.
Initialize it with a dummy value.  This undoes a removal of initialization
in commit 654809e770ce270c0bb9de726c5df1ab193d60f0.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/60ff5de22aa4781f60cc141e2518c242c66d9235

Modified Files
--------------
src/backend/utils/adt/jsonb.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Invent a memory context reset/delete callback mechanism.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix planning of star-schema-style queries.