]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Enable -Wstrict-prototypes and -Wold-style-definition by default
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 18 Mar 2026 13:31:50 +0000 (14:31 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 18 Mar 2026 13:31:50 +0000 (14:31 +0100)
commit29bf4ee7496ca594495deb2599e8a44c6338525e
tree3b898aab92301bbafd596f17416093aab4ce0663
parent9b406a9e48545adf36c0dfcfc565be468d274f8b
Enable -Wstrict-prototypes and -Wold-style-definition by default

Those are available in all gcc and clang versions that support C11 and as C11
is required as of f5e0186f865c, then we can add them without capability test.

Having them enabled by default avoid having to chase these manually like
11171fe1fc8cdf4b9aff20e72b9d4407069dbcc31f1283ed6cc7b66e2c086,
e95126cf04 and 9f7c527af3 have done.

Also, readline headers trigger a lot of warnings with -Wstrict-prototypes, so
we make use of the system_header pragma to hide the warnings.

Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/13d51b20-a69c-4ac1-8546-ec4fc278064f%40eisentraut.org
Discussion: https://postgr.es/m/aTFctZwWSpl2/LG5%40ip-10-97-1-34.eu-west-3.compute.internal
configure
configure.ac
meson.build
src/bin/psql/input.h