Suppress "has no symbols" linker warnings on macOS.

Nathan Bossart <nathan@postgresql.org>

Commit: 05f6c9ec2c475fae8fdd56ae40bd01afcf70d1f2
Author: Nathan Bossart <nathan@postgresql.org>
Date: 2026-04-29T17:25:09Z
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

Files

PathChange+/−
src/common/protocol_openssl.c modified +7 −1

Discussion