Add warning option -Wold-style-declaration

Peter Eisentraut <peter@eisentraut.org>

Commit: c73e8ee061adf26ed77ffa7e676f5de6d9f6da21
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2026-03-30T21:34:13Z
Add warning option -Wold-style-declaration

This warning has been triggered a few times via the buildfarm (see
commits 8212625e53f, 2b7259f8557, afe86a9e73b), so we might as well
add it so that everyone sees it.

(This is completely separate from the recently added
-Wold-style-definition.)

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/aa73q1aT0A3/vke/%40ip-10-97-1-34.eu-west-3.compute.internal

Files

PathChange+/−
configure modified +41 −0
configure.ac modified +2 −0
meson.build modified +9 −5

Discussion