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

Commita3e8486

Browse files
committed
Prevent possible compiler warnings.
Simon Riggs reports that rnode.dbNode and rnode.spcNode weregenerating unused variable warnings on gcc 4.4.3 with CFLAGS=-O1
1 parent4f2cfc5 commita3e8486

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/backend/utils/adt/dbsize.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,9 @@ pg_relation_filepath(PG_FUNCTION_ARGS)
603603
default:
604604
/* no storage, return NULL */
605605
rnode.relNode=InvalidOid;
606+
/* some compilers generate warnings without these next two lines */
607+
rnode.dbNode=InvalidOid;
608+
rnode.spcNode=InvalidOid;
606609
break;
607610
}
608611

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp