Re: Use func(void) for functions with no parameters
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Matthias van de Meent <boekewurm+postgres@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2025-12-03T16:10:10Z
Lists: pgsql-hackers
On Wed, Dec 03, 2025 at 03:53:37PM +0000, Bertrand Drouvot wrote: > The buildfarm animal remark makes me think to check with -Wstrict-prototypes > and -Wold-style-definition. I just did that and found two more (added in v2 > attached) that the coccinelle script missed... > > Those new two (run_apply_worker() and usage()) are also static, so that's just > chance. LGTM, too. I'll take care of committing this shortly. -- nathan
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Enable -Wstrict-prototypes and -Wold-style-definition by default
- 29bf4ee7496c 19 (unreleased) landed
-
Use "foo(void)" for definitions of functions with no parameters.
- 9b05e2ec08a3 19 (unreleased) landed