postgres.git / summary / log / commit / refs
commit 593f469a048f1479d19579a06ec32cce9ddfa190
Author: Andres Freund <andres@anarazel.de>
Date: Fri Apr 15 01:54:06 2016 +0000
First released in: 9.6.0, 9.1.22, 9.2.17, 9.3.13, 9.5.3
Remove trailing commas in enums.
These aren't valid C89. Found thanks to gcc's -Wc90-c99-compat. These
exist in differing places in most supported branches.
src/backend/executor/execIndexing.c | 2 +-
src/include/access/xlog_internal.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/executor/execIndexing.c b/src/backend/executor/execIndexing.c
index 1b549811e67..645e76b4899 100644
--- a/src/backend/executor/execIndexing.c
+++ b/src/backend/executor/execIndexing.c
@@ -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,
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h
index 5096c170dd2..e9bf51646a2 100644
--- a/src/include/access/xlog_internal.h
+++ b/src/include/access/xlog_internal.h
@@ -252,7 +252,7 @@ typedef enum
{
RECOVERY_TARGET_ACTION_PAUSE,
RECOVERY_TARGET_ACTION_PROMOTE,
- RECOVERY_TARGET_ACTION_SHUTDOWN,
+ RECOVERY_TARGET_ACTION_SHUTDOWN
} RecoveryTargetAction;
/*
[parent: e7a456174b2e]