postgresql/src/backend/utils
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
..
adt Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
cache Allow publishing partition changes via ancestors 2020-04-08 11:19:23 +02:00
error Go back to returning int from ereport auxiliary functions. 2020-03-25 11:57:36 -04:00
fmgr Implement operator class parameters 2020-03-30 19:17:23 +03:00
hash Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
init Recompute stack base in forked postmaster children. 2020-04-05 18:23:30 -07:00
mb Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
misc Add -Wimplicit-fallthrough to CFLAGS and CXXFLAGS 2020-05-12 16:07:30 -04:00
mmgr Remove useless (and broken) logging logic in memory context functions. 2020-04-23 15:27:37 -04:00
resowner Improve performance of "simple expressions" in PL/pgSQL. 2020-03-26 18:58:57 -04:00
sort Fix typos and improve incremental sort comments 2020-05-12 19:37:13 +02:00
time Update copyrights for 2020 2020-01-01 12:21:45 -05:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
Gen_dummy_probes.pl Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Gen_dummy_probes.sed Update copyrights for 2020 2020-01-01 12:21:45 -05:00
Gen_fmgrtab.pl Use perl warnings pragma consistently 2020-04-13 11:55:45 -04:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
errcodes.txt Make SQL/JSON error code names match SQL standard 2020-04-30 09:34:54 +02:00
generate-errcodes.pl Update copyrights for 2020 2020-01-01 12:21:45 -05:00
probes.d Update copyrights for 2020 2020-01-01 12:21:45 -05:00