From 593f469a048f1479d19579a06ec32cce9ddfa190 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Thu, 14 Apr 2016 18:54:06 -0700 Subject: [PATCH] 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 1b549811e6..645e76b489 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 5096c170dd..e9bf51646a 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; /*