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

Commit0de5274

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 parentd96f725 commit0de5274

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
@@ -781,7 +781,6 @@ initialize_SSL(PGconn *conn)
781781
boolhave_homedir;
782782
boolhave_cert;
783783
boolhave_rootcert;
784-
EVP_PKEY*pkey=NULL;
785784

786785
/*
787786
* We'll need the home directory if any of the relevant parameters are
@@ -1117,6 +1116,7 @@ initialize_SSL(PGconn *conn)
11171116
/* Colon, but not in second character, treat as engine:key */
11181117
char*engine_str=strdup(conn->sslkey);
11191118
char*engine_colon;
1119+
EVP_PKEY*pkey;
11201120

11211121
if (engine_str==NULL)
11221122
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp