[COMMITTERS] pgsql: Silence uninitialized variable compiler warning in sepgsql

Поиск
Список
Период
Сортировка
От Joe Conway
Тема [COMMITTERS] pgsql: Silence uninitialized variable compiler warning in sepgsql
Дата
Msg-id E1cwExO-0002BC-C2@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Silence uninitialized variable compiler warning in sepgsql

At -Og optimization gcc warns that variable tclass may be used
uninitialized when relkind == RELKIND_INDEX. Actually that can't
happen due to an early return, but quiet the compiler by initializing
tclass to 0.

In passing, use uint16_t consistently for the declaration of tclass.

Complaint and initial patch by Mike Palmiotto. Editorializing by me.
Probably not worth backpatching given that it is cosmetic, so apply
to development head only.

Discussion: https://postgr.es/m/flat/623bcaae-112e-ced0-8c22-a84f75ae0c53%40joeconway.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/af8a94d18d70ca226a12057ad4b3d17f27d8ff13

Modified Files
--------------
contrib/sepgsql/relation.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: [COMMITTERS] pgsql: Silence compiler warning in sepgsql
Следующее
От: Andres Freund
Дата:
Сообщение: [COMMITTERS] pgsql: Allow avoiding tuple copy within tuplesort_gettupleslot().