1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

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.
This commit is contained in:
Andres Freund
2016-04-14 18:54:06 -07:00
parent 34bf6bc56c
commit f1d26d3e0a
4 changed files with 4 additions and 4 deletions

View File

@ -552,7 +552,7 @@ typedef enum
XLOG_FROM_ANY = 0, /* request to read WAL from any source */ XLOG_FROM_ANY = 0, /* request to read WAL from any source */
XLOG_FROM_ARCHIVE, /* restored using restore_command */ XLOG_FROM_ARCHIVE, /* restored using restore_command */
XLOG_FROM_PG_XLOG, /* existing file in pg_xlog */ XLOG_FROM_PG_XLOG, /* existing file in pg_xlog */
XLOG_FROM_STREAM, /* streamed from master */ XLOG_FROM_STREAM /* streamed from master */
} XLogSource; } XLogSource;
/* human-readable names for XLogSources, for debugging output */ /* human-readable names for XLogSources, for debugging output */

View File

@ -45,7 +45,7 @@ typedef enum ObjectAccessType
OAT_DROP, OAT_DROP,
OAT_POST_ALTER, OAT_POST_ALTER,
OAT_NAMESPACE_SEARCH, OAT_NAMESPACE_SEARCH,
OAT_FUNCTION_EXECUTE, OAT_FUNCTION_EXECUTE
} ObjectAccessType; } ObjectAccessType;
/* /*

View File

@ -640,7 +640,7 @@ typedef enum BackendState
STATE_IDLEINTRANSACTION, STATE_IDLEINTRANSACTION,
STATE_FASTPATH, STATE_FASTPATH,
STATE_IDLEINTRANSACTION_ABORTED, STATE_IDLEINTRANSACTION_ABORTED,
STATE_DISABLED, STATE_DISABLED
} BackendState; } BackendState;
/* ---------- /* ----------

View File

@ -30,7 +30,7 @@ typedef enum
JSON_TOKEN_TRUE, JSON_TOKEN_TRUE,
JSON_TOKEN_FALSE, JSON_TOKEN_FALSE,
JSON_TOKEN_NULL, JSON_TOKEN_NULL,
JSON_TOKEN_END, JSON_TOKEN_END
} JsonTokenType; } JsonTokenType;