Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3235a11

Browse files
committed
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 buildfarmbefore now, because I've not seen this warning before, even thoughthe code has been like this a long time. Move the declarationto silence the warning (and remove its useless initialization).Per buildfarm member sawshark. Back-patch to all supported branches.
1 parent14e4e8f commit3235a11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/interfaces/libpq/fe-secure-openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,6 @@ initialize_SSL(PGconn *conn)
915915
boolhave_homedir;
916916
boolhave_cert;
917917
boolhave_rootcert;
918-
EVP_PKEY*pkey=NULL;
919918

920919
/*
921920
* We'll need the home directory if any of the relevant parameters are
@@ -1265,6 +1264,7 @@ initialize_SSL(PGconn *conn)
12651264
/* Colon, but not in second character, treat as engine:key */
12661265
char*engine_str=strdup(conn->sslkey);
12671266
char*engine_colon;
1267+
EVP_PKEY*pkey;
12681268

12691269
if (engine_str==NULL)
12701270
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp