From: Andres Freund Date: Fri, 15 Apr 2016 01:54:06 +0000 (-0700) Subject: Remove trailing commas in enums. X-Git-Tag: REL9_2_17~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b54508596dc4202d581873a8841c72fcf3bae7a6;p=postgresql 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. --- diff --git a/src/include/catalog/objectaccess.h b/src/include/catalog/objectaccess.h index e97c62001b..d9c959ac91 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 b3762edb09..a9edf8f663 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; /* ----------