postgres.git / summary / log / commit / refs
commit b54508596dc4202d581873a8841c72fcf3bae7a6
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/include/catalog/objectaccess.h | 2 +-
src/include/pgstat.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/include/catalog/objectaccess.h b/src/include/catalog/objectaccess.h
index e97c62001b4..d9c959ac919 100644
--- a/src/include/catalog/objectaccess.h
+++ b/src/include/catalog/objectaccess.h
@@ -27,7 +27,7 @@
typedef enum ObjectAccessType
{
OAT_POST_CREATE,
- OAT_DROP,
+ OAT_DROP
} ObjectAccessType;
/*
diff --git a/src/include/pgstat.h b/src/include/pgstat.h
index b3762edb097..a9edf8f6631 100644
--- a/src/include/pgstat.h
+++ b/src/include/pgstat.h
@@ -637,7 +637,7 @@ typedef enum BackendState
STATE_IDLEINTRANSACTION,
STATE_FASTPATH,
STATE_IDLEINTRANSACTION_ABORTED,
- STATE_DISABLED,
+ STATE_DISABLED
} BackendState;
/* ----------
[parent: 6bb42d520436]