Skip to content

Commit 3674266

Browse files
committed
BUG24422244: Fix warning when building C extension
This patch fix the warning that is thrown when building the C extension, by removing the unused variable.
1 parent 7097eae commit 3674266

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/mysql_capi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,6 @@ MySQL_connect(MySQL *self, PyObject *args, PyObject *kwds)
10301030
char *ssl_ca= NULL, *ssl_cert= NULL, *ssl_key= NULL;
10311031
PyObject *charset_name, *compress, *ssl_verify_cert;
10321032
const char* auth_plugin;
1033-
unsigned long ver;
10341033
unsigned long client_flags= 0;
10351034
unsigned int port= 3306, tmp_uint;
10361035
unsigned int protocol= 0;
@@ -1065,7 +1064,6 @@ MySQL_connect(MySQL *self, PyObject *args, PyObject *kwds)
10651064
}
10661065

10671066
mysql_init(&self->session);
1068-
ver= mysql_get_client_version();
10691067

10701068
#ifdef MS_WINDOWS
10711069
if (NULL == host)

0 commit comments

Comments
 (0)