[COMMITTERS] pgsql: Silence uninitialized variable compiler warning in sepgsql - Mailing list pgsql-committers

From Joe Conway
Subject [COMMITTERS] pgsql: Silence uninitialized variable compiler warning in sepgsql
Date
Msg-id E1cwExO-0002BC-C2@gemulon.postgresql.org
Whole thread Raw
List 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 by date:

Previous
From: Joe Conway
Date:
Subject: [COMMITTERS] pgsql: Silence compiler warning in sepgsql
Next
From: Andres Freund
Date:
Subject: [COMMITTERS] pgsql: Allow avoiding tuple copy within tuplesort_gettupleslot().