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

Commit1f7452f

Browse files
committed
Remove COMMAND_TAG_NEXTTAG from enum CommandTag.
COMMAND_TAG_NEXTTAG isn't really a valid command tag. Declaring itas if it were one prompts complaints from Coverity and perhaps otherstatic analyzers. Our only use of it is in an entirely-unnecessaryarray sizing declaration, so let's just drop it.Ranier VilelaDiscussion:https://postgr.es/m/CAEudQAoY0xrKuTAX7W10zsjjUpKBPFRtdCyScb3Z0FB2v6HNmQ@mail.gmail.com
1 parent11c1984 commit1f7452f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

‎src/backend/tcop/cmdtag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ typedef struct CommandTagBehavior
3030
#definePG_CMDTAG(tag,name,evtrgok,rwrok,rowcnt) \
3131
{ name, (uint8) (sizeof(name) - 1), evtrgok, rwrok, rowcnt },
3232

33-
staticconstCommandTagBehaviortag_behavior[COMMAND_TAG_NEXTTAG]= {
33+
staticconstCommandTagBehaviortag_behavior[]= {
3434
#include"tcop/cmdtaglist.h"
3535
};
3636

‎src/include/tcop/cmdtag.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
typedefenumCommandTag
2323
{
2424
#include "tcop/cmdtaglist.h"
25-
COMMAND_TAG_NEXTTAG
2625
}CommandTag;
2726

2827
#undef PG_CMDTAG

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp