]> granicus.if.org Git - postgresql/commitdiff
Remove trailing commas in enums.
authorAndres Freund <andres@anarazel.de>
Fri, 15 Apr 2016 01:54:06 +0000 (18:54 -0700)
committerAndres Freund <andres@anarazel.de>
Fri, 15 Apr 2016 02:25:17 +0000 (19:25 -0700)
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
src/include/pgstat.h

index e97c62001b4dd227e2b1f5662d73ca5c2c4c386d..d9c959ac91903b162eb500fe8b3fbd044dc9745f 100644 (file)
@@ -27,7 +27,7 @@
 typedef enum ObjectAccessType
 {
        OAT_POST_CREATE,
-       OAT_DROP,
+       OAT_DROP
 } ObjectAccessType;
 
 /*
index b3762edb0973bc8cdc6bd06ad53dccfb0bd0b61c..a9edf8f66311922acb327c6eaa76feda01e72e7b 100644 (file)
@@ -637,7 +637,7 @@ typedef enum BackendState
        STATE_IDLEINTRANSACTION,
        STATE_FASTPATH,
        STATE_IDLEINTRANSACTION_ABORTED,
-       STATE_DISABLED,
+       STATE_DISABLED
 } BackendState;
 
 /* ----------