Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf8a94d

Browse files
committed
Silence uninitialized variable compiler warning in sepgsql
At -Og optimization gcc warns that variable tclass may be useduninitialized when relkind == RELKIND_INDEX. Actually that can'thappen due to an early return, but quiet the compiler by initializingtclass 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 applyto development head only.Discussion:https://postgr.es/m/flat/623bcaae-112e-ced0-8c22-a84f75ae0c53%40joeconway.com
1 parentbd190ea commitaf8a94d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎contrib/sepgsql/relation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ sepgsql_relation_post_create(Oid relOid)
243243
HeapTupletuple;
244244
Form_pg_classclassForm;
245245
ObjectAddressobject;
246-
uint16tclass;
246+
uint16_ttclass;
247247
char*scontext;/* subject */
248248
char*tcontext;/* schema */
249249
char*rcontext;/* relation */
@@ -413,7 +413,7 @@ sepgsql_relation_drop(Oid relOid)
413413
{
414414
ObjectAddressobject;
415415
char*audit_name;
416-
uint16_ttclass;
416+
uint16_ttclass=0;
417417
charrelkind;
418418

419419
relkind=get_rel_relkind(relOid);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp