postgresql/contrib/sepgsql
Joe Conway af8a94d18d 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
2017-04-06 14:28:19 -07:00
..
expected Blindly attempt to fix sepgsql tests #2. 2017-03-25 20:54:23 -07:00
sql Fix typos in comments. 2017-02-06 11:33:58 +02:00
.gitignore
database.c
dml.c
hooks.c Try to fix breakage of sepgsql hooks by ENR patch. 2017-04-01 00:10:12 -05:00
label.c Silence compiler warning in sepgsql 2017-04-06 14:24:29 -07:00
launcher
Makefile
proc.c
relation.c Silence uninitialized variable compiler warning in sepgsql 2017-04-06 14:28:19 -07:00
schema.c
selinux.c Fix typos in comments. 2017-02-06 11:33:58 +02:00
sepgsql-regtest.te
sepgsql.h Remove unnecessary prototypes in loadable modules 2017-01-17 12:35:11 -05:00
sepgsql.sql.in
test_sepgsql
uavc.c