]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Suppress "has no symbols" linker warnings on macOS.
authorNathan Bossart <nathan@postgresql.org>
Wed, 29 Apr 2026 17:25:09 +0000 (12:25 -0500)
committerNathan Bossart <nathan@postgresql.org>
Wed, 29 Apr 2026 17:25:09 +0000 (12:25 -0500)
commit7a8e35a4c9647e97ab44a3059be21903cdf6bfeb
treed325ec7f1b0df39a5e8e2957d72ca00a8f94f3c7
parent4b062bd442ad622eba25e001e692313a556e81c6
Suppress "has no symbols" linker warnings on macOS.

After a recent macOS update, building Postgres produces warnings
that look like this:

    ranlib: warning: 'libpgport_shlib.a(pg_cpu_x86.c.o)' has no symbols
    ranlib: warning: 'libpgport_shlib.a(pg_popcount_x86.c.o)' has no symbols

To fix, add a dummy symbol to files that may otherwise have none.
Per project policy, this is a candidate for back-patching into
out-of-support branches: it suppresses annoying compiler warnings
but changes no behavior.

Reported-by: Zhang Mingli <zmlpostgres@gmail.com>
Reviewed-by: John Naylor <johncnaylorls@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/229aaaf3-f529-44ed-8e50-00cb6909af21%40Spark
Backpatch-through: 13
src/common/protocol_openssl.c