postgresql/src/backend
Alvaro Herrera 3e9744465d
Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS
Use it at level 4, a bit more restrictive than the default level, and
tweak our commanding comments to FALLTHROUGH.

(However, leave zic.c alone, since it's external code; to avoid the
warnings that would appear there, change CFLAGS for that file in the
Makefile.)

Author: Julien Rouhaud <rjuju123@gmail.com>
Author: Álvaro Herrera <alvherre@alvh.no-ip.org>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/20200412081825.qyo5vwwco3fv4gdo@nol
Discussion: https://postgr.es/m/flat/E1fDenm-0000C8-IJ@gemulon.postgresql.org
2020-05-12 16:07:30 -04:00
..
access Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
bootstrap Skip WAL for new relfilenodes, under wal_level=minimal. 2020-04-04 12:25:34 -07:00
catalog Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
commands Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
executor Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit Extend ExecBuildAggTrans() to support a NULL pointer check. 2020-03-04 17:29:18 -08:00
lib Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
libpq Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
main Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nodes Get rid of trailing semicolons in C macro definitions. 2020-05-01 17:28:00 -04:00
optimizer Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
parser Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
partitioning Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
po Translation updates 2020-05-11 13:14:32 +02:00
port Update copyrights for 2020 2020-01-01 12:21:45 -05:00
postmaster Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
regex Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
replication Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
rewrite Fix INSERT OVERRIDING USER VALUE behavior 2020-03-31 08:50:39 +02:00
snowball Update copyrights for 2020 2020-01-01 12:21:45 -05:00
statistics Modify additional power 2 calculations to use new helper functions 2020-04-08 18:29:51 +12:00
storage Remove smgrdounlink() in smgr.c from the code tree 2020-05-10 10:58:54 +09:00
tcop Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
tsearch Further cleanup of ts_headline code. 2020-04-09 15:38:43 -04:00
utils Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00