]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Avoid "unused variable" warning on non-USE_SSL_ENGINE platforms.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Apr 2024 23:01:18 +0000 (19:01 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Apr 2024 23:01:18 +0000 (19:01 -0400)
commit98e427af9f59f2515ed67b97c64c9fec16fa7211
tree809fceba41f3f6aaef60d43524993fb6bcae26de
parent08bdf0a4798bbbbc401bd951cd9553f3c6de2de7
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