Use "foo(void)" for definitions of functions with no parameters.
authorNathan Bossart <nathan@postgresql.org>
Wed, 3 Dec 2025 16:54:37 +0000 (10:54 -0600)
committerNathan Bossart <nathan@postgresql.org>
Wed, 3 Dec 2025 16:54:37 +0000 (10:54 -0600)
commit9b05e2ec08a3d174accb2a9e1c59e52e94799acc
tree5df364b27679992fd5e38f817d6f010996e8ee46
parentbe25c77677285d3b1365bd19280b27771a1efbce
Use "foo(void)" for definitions of functions with no parameters.

Standard practice in PostgreSQL is to use "foo(void)" instead of
"foo()", as the latter looks like an "old-style" function
declaration.  Similar changes were made in commits cdf4b9aff2,
0e72b9d4407069dbcc31f1283ed6cc7b66e2c086e95126cf04, and
9f7c527af3.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com>
Discussion: https://postgr.es/m/aTBObQPg%2Bps5I7vl%40ip-10-97-1-34.eu-west-3.compute.internal
src/backend/access/common/heaptuple.c
src/backend/access/index/genam.c
src/backend/replication/logical/applyparallelworker.c
src/backend/replication/logical/sequencesync.c
src/backend/replication/logical/slotsync.c
src/backend/replication/logical/tablesync.c
src/backend/replication/logical/worker.c
src/backend/utils/adt/uuid.c
src/bin/pg_basebackup/pg_createsubscriber.c