Avoid "unused variable" warning on non-USE_SSL_ENGINE platforms.
commit8f8511d4770868ff928ceded9d83c6eee14cce96
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Apr 2024 23:01:18 +0000 (1 19:01 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Apr 2024 23:01:18 +0000 (1 19:01 -0400)
tree0e0d0e984515e976c8103d060e0683fcf5fa7482
parent30fe8a7ba07efc84caba06bce536c0a273ef5655
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