Avoid "unused variable" warning on non-USE_SSL_ENGINE platforms.
authorTom Lane
Mon, 1 Apr 2024 23:01:18 +0000 (19:01 -0400)
committerTom Lane
Mon, 1 Apr 2024 23:01:18 +0000 (19:01 -0400)
commit3235a11c128b5979bce84d56b8044c7fb2e6b61d
tree1cbd07702c6c592d825fad83e875a3292ff9ccdd
parent14e4e8f8c66b2d4316ecb1276e688d67c25659c2
Avoid "unused variable" warning on non-USE_SSL_ENGINE platforms.

If we are building with openssl but USE_SSL_ENGINE didn't get set,
initialize_SSL's variable "pkey" is declared but used nowhere.
Apparently this combination hasn't been exercised in the buildfarm
before now, because I've not seen this warning before, even though
the code has been like this a long time.  Move the declaration
to silence the warning (and remove its useless initialization).

Per buildfarm member sawshark.  Back-patch to all supported branches.
src/interfaces/libpq/fe-secure-openssl.c