pgsql: Avoid "unused variable" warning on non-USE_SSL_ENGINE platforms.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid "unused variable" warning on non-USE_SSL_ENGINE platforms.
Date: 2024-04-01 23:01:45
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/98e427af9f59f2515ed67b97c64c9fec16fa7211

Modified Files
--------------
src/interfaces/libpq/fe-secure-openssl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2024-04-01 23:16:18 pgsql: Fix assert failure when planning setop subqueries with CTEs
Previous Message Heikki Linnakangas 2024-04-01 21:56:56 pgsql: Introduce 'options' argument to heap_page_prune()