Skip to content

Commit

Permalink
Remove trailing commas in enums.
Browse files Browse the repository at this point in the history
These aren't valid C89. Found thanks to gcc's -Wc90-c99-compat. These
exist in differing places in most supported branches.
  • Loading branch information
anarazel committed Apr 15, 2016
1 parent 7b16781 commit 533cd23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/backend/executor/execIndexing.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ typedef enum
{
CEOUC_WAIT,
CEOUC_NOWAIT,
CEOUC_LIVELOCK_PREVENTING_WAIT,
CEOUC_LIVELOCK_PREVENTING_WAIT
} CEOUC_WAIT_MODE;

static bool check_exclusion_or_unique_constraint(Relation heap, Relation index,
Expand Down
2 changes: 1 addition & 1 deletion src/include/access/xlog_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ typedef enum
{
RECOVERY_TARGET_ACTION_PAUSE,
RECOVERY_TARGET_ACTION_PROMOTE,
RECOVERY_TARGET_ACTION_SHUTDOWN,
RECOVERY_TARGET_ACTION_SHUTDOWN
} RecoveryTargetAction;

/*
Expand Down
2 changes: 1 addition & 1 deletion src/include/pgstat.h
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ typedef enum WaitClass
typedef enum ProgressCommandType
{
PROGRESS_COMMAND_INVALID,
PROGRESS_COMMAND_VACUUM,
PROGRESS_COMMAND_VACUUM
} ProgressCommandType;

#define PGSTAT_NUM_PROGRESS_PARAM 10
Expand Down

0 comments on commit 533cd23

Please sign in to comment.