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

Commit96102a3

Browse files
committed
Suppress possibly-uninitialized-variable warnings.
Apparently, Peter's compiler has faith that the switch test values herecould never not be valid values of their enums. Mine does not, andI tend to agree with it.
1 parenteee50a8 commit96102a3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎src/backend/catalog/aclchk.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3359,7 +3359,7 @@ aclcheck_error(AclResult aclerr, ObjectType objtype,
33593359
break;
33603360
caseACLCHECK_NO_PRIV:
33613361
{
3362-
constchar*msg;
3362+
constchar*msg="???";
33633363

33643364
switch (objtype)
33653365
{
@@ -3481,7 +3481,6 @@ aclcheck_error(AclResult aclerr, ObjectType objtype,
34813481
caseOBJECT_TSTEMPLATE:
34823482
caseOBJECT_USER_MAPPING:
34833483
elog(ERROR,"unsupported object type %d",objtype);
3484-
msg="???";
34853484
}
34863485

34873486
ereport(ERROR,
@@ -3491,7 +3490,7 @@ aclcheck_error(AclResult aclerr, ObjectType objtype,
34913490
}
34923491
caseACLCHECK_NOT_OWNER:
34933492
{
3494-
constchar*msg;
3493+
constchar*msg="???";
34953494

34963495
switch (objtype)
34973496
{
@@ -3616,7 +3615,6 @@ aclcheck_error(AclResult aclerr, ObjectType objtype,
36163615
caseOBJECT_TSTEMPLATE:
36173616
caseOBJECT_USER_MAPPING:
36183617
elog(ERROR,"unsupported object type %d",objtype);
3619-
msg="???";
36203618
}
36213619

36223620
ereport(ERROR,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp