postgresql/src/backend/catalog
Tom Lane 41c912cad1 Clean up warnings from -Wimplicit-fallthrough.
Recent gcc can warn about switch-case fall throughs that are not
explicitly labeled as intentional.  This seems like a good thing,
so clean up the warnings exposed thereby by labeling all such
cases with comments that gcc will recognize.

In files that already had one or more suitable comments, I generally
matched the existing style of those.  Otherwise I went with
/* FALLTHROUGH */, which is one of the spellings approved at the
more-restrictive-than-default level -Wimplicit-fallthrough=4.
(At the default level you can also spell it /* FALL ?THRU */,
and it's not picky about case.  What you can't do is include
additional text in the same comment, so some existing comments
containing versions of this aren't good enough.)

Testing with gcc 8.0.1 (Fedora 28's current version), I found that
I also had to put explicit "break"s after elog(ERROR) or ereport(ERROR);
apparently, for this purpose gcc doesn't recognize that those don't
return.  That seems like possibly a gcc bug, but it's fine because
in most places we did that anyway; so this amounts to a visit from the
style police.

Discussion: https://postgr.es/m/15083.1525207729@sss.pgh.pa.us
2018-05-01 19:35:08 -04:00
..
.gitignore Replace our traditional initial-catalog-data format with a better design. 2018-04-08 13:17:27 -04:00
aclchk.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
catalog.c Do not select new object OIDs that match recently-dead entries. 2018-04-11 17:41:22 -04:00
Catalog.pm Clarify handling of special-case values in bootstrap catalog data. 2018-04-28 15:27:16 -04:00
dependency.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
genbki.pl Write error messages about duplicate OIDs to stderr 2018-04-30 14:18:46 -04:00
heap.c Reorganize partitioning code 2018-04-14 21:12:14 -03:00
index.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
indexing.c Indexes with INCLUDE columns and their support in B-tree 2018-04-07 23:00:39 +03:00
information_schema.sql Add prokind column, replacing proisagg and proiswindow 2018-03-02 13:48:33 -05:00
Makefile Avoid parsing catalog data twice during BKI file construction. 2018-04-26 13:22:27 -04:00
namespace.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
objectaccess.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
objectaddress.c Clean up warnings from -Wimplicit-fallthrough. 2018-05-01 19:35:08 -04:00
partition.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
pg_aggregate.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_collation.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_constraint.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
pg_conversion.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_db_role_setting.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_depend.c Local partitioned indexes 2018-01-19 11:49:22 -03:00
pg_enum.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_inherits.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
pg_largeobject.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_namespace.c Replace GrantObjectType with ObjectType 2018-01-19 14:01:14 -05:00
pg_operator.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_proc.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
pg_publication.c Logical replication support for TRUNCATE 2018-04-07 11:34:11 -04:00
pg_range.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_shdepend.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_subscription.c Split the SetSubscriptionRelState function into two 2018-04-06 10:00:26 -04:00
pg_type.c Merge catalog/pg_foo_fn.h headers back into pg_foo.h headers. 2018-04-08 14:35:29 -04:00
sql_feature_packages.txt > I have installed your patch and adjusted the names of the standards 2004-12-02 22:51:28 +00:00
sql_features.txt Revert MERGE patch 2018-04-12 11:22:56 +01:00
storage.c Further cleanup of client dependencies on src/include/catalog headers. 2018-04-09 14:39:58 -04:00
system_views.sql Revert "Allow on-line enabling and disabling of data checksums" 2018-04-09 19:03:42 +02:00
toasting.c Rename IndexInfo.ii_KeyAttrNumbers array 2018-04-12 13:02:45 +03:00