postgresql/src/backend
Tom Lane 0da06d9faf Get rid of trailing semicolons in C macro definitions.
Writing a trailing semicolon in a macro is almost never the right thing,
because you almost always want to write a semicolon after each macro
call instead.  (Even if there was some reason to prefer not to, pgindent
would probably make a hash of code formatted that way; so within PG the
rule should basically be "don't do it".)  Thus, if we have a semi inside
the macro, the compiler sees "something;;".  Much of the time the extra
empty statement is harmless, but it could lead to mysterious syntax
errors at call sites.  In perhaps an overabundance of neatnik-ism, let's
run around and get rid of the excess semicolons whereever possible.

The only thing worse than a mysterious syntax error is a mysterious
syntax error that only happens in the back branches; therefore,
backpatch these changes where relevant, which is most of them because
most of these mistakes are old.  (The lack of reported problems shows
that this is largely a hypothetical issue, but still, it could bite
us in some future patch.)

John Naylor and Tom Lane

Discussion: https://postgr.es/m/CACPNZCs0qWTqJ2QUSGJ07B7uvAvzMb-KbG2q+oo+J3tsWN5cqw@mail.gmail.com
2020-05-01 17:28:00 -04:00
..
access Clear up issue with FSM and oldest bpto.xact. 2020-05-01 12:19:44 -07:00
bootstrap Skip WAL for new relfilenodes, under wal_level=minimal. 2020-04-04 12:25:34 -07:00
catalog Fix definition of pg_statio_all_tables view 2020-04-28 11:30:33 +03:00
commands Fix error case for CREATE ROLE ... IN ROLE. 2020-04-25 05:09:30 +01:00
executor Fix transient memory leak for SRFs in FROM. 2020-04-22 19:53:06 -07: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 Fix check for conflicting SSL min/max protocol settings 2020-04-30 08:14:02 +09: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 Get rid of trailing semicolons in C macro definitions. 2020-05-01 17:28:00 -04:00
parser Add ALTER .. NO DEPENDS ON 2020-04-20 13:42:12 -04:00
partitioning Fix some typos 2020-04-27 14:59:36 +09:00
po Translation updates 2019-06-17 15:30:20 +02:00
port Update copyrights for 2020 2020-01-01 12:21:45 -05:00
postmaster Fix checkpoint signalling 2020-04-29 18:46:42 -04:00
regex Update copyrights for 2020 2020-01-01 12:21:45 -05:00
replication Check slot->restart_lsn validity in a few more places 2020-04-28 20:39:04 -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 Revert 0f5ca02f53 2020-04-08 11:37:27 +03:00
tcop Revert 0f5ca02f53 2020-04-08 11:37:27 +03:00
tsearch Further cleanup of ts_headline code. 2020-04-09 15:38:43 -04:00
utils Get rid of trailing semicolons in C macro definitions. 2020-05-01 17:28:00 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00