mirror of
https://github.com/postgres/postgres.git
synced 2025-05-19 00:04:06 -04:00
Remove COMMAND_TAG_NEXTTAG from enum CommandTag.
COMMAND_TAG_NEXTTAG isn't really a valid command tag. Declaring it as if it were one prompts complaints from Coverity and perhaps other static analyzers. Our only use of it is in an entirely-unnecessary array sizing declaration, so let's just drop it. Ranier Vilela Discussion: https://postgr.es/m/CAEudQAoY0xrKuTAX7W10zsjjUpKBPFRtdCyScb3Z0FB2v6HNmQ@mail.gmail.com
This commit is contained in:
parent
11c1984ccc
commit
1f7452fa59
@ -30,7 +30,7 @@ typedef struct CommandTagBehavior
|
|||||||
#define PG_CMDTAG(tag, name, evtrgok, rwrok, rowcnt) \
|
#define PG_CMDTAG(tag, name, evtrgok, rwrok, rowcnt) \
|
||||||
{ name, (uint8) (sizeof(name) - 1), evtrgok, rwrok, rowcnt },
|
{ name, (uint8) (sizeof(name) - 1), evtrgok, rwrok, rowcnt },
|
||||||
|
|
||||||
static const CommandTagBehavior tag_behavior[COMMAND_TAG_NEXTTAG] = {
|
static const CommandTagBehavior tag_behavior[] = {
|
||||||
#include "tcop/cmdtaglist.h"
|
#include "tcop/cmdtaglist.h"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
typedef enum CommandTag
|
typedef enum CommandTag
|
||||||
{
|
{
|
||||||
#include "tcop/cmdtaglist.h"
|
#include "tcop/cmdtaglist.h"
|
||||||
COMMAND_TAG_NEXTTAG
|
|
||||||
} CommandTag;
|
} CommandTag;
|
||||||
|
|
||||||
#undef PG_CMDTAG
|
#undef PG_CMDTAG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user