]> granicus.if.org Git - php/commitdiff
Fixed compiler warnings.
authorIlia Alshanetsky <iliaa@php.net>
Sat, 12 Feb 2005 20:58:29 +0000 (20:58 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 12 Feb 2005 20:58:29 +0000 (20:58 +0000)
ext/pdo_mysql/mysql_driver.c
ext/pdo_mysql/mysql_statement.c

index 5665ab6393cde759dda3c08321e0a181a84ee007..ed9507ea7cba8f3851fc3a9bbcdbc63e91dfdbac 100755 (executable)
@@ -239,7 +239,7 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
        pdo_mysql_db_handle *H;
        int i, ret = 0;
        char *host = NULL, *unix_socket = NULL;
-       unsigned int port;
+       unsigned int port = 3306;
        char *dbname;
        struct pdo_data_src_parser vars[] = {
                { "charset",  NULL,     0 },
index 80683d926881be071315887cdaafcd01d1ab7070..025ca2bb4719e7a60b9555161d014c5ec56bf41b 100755 (executable)
@@ -34,7 +34,6 @@
 static int pdo_mysql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
 {
        pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data;
-       int i;
 
        if (S->result) {
                /* free the resource */
@@ -51,7 +50,6 @@ static int pdo_mysql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
 
 static int pdo_mysql_stmt_execute(pdo_stmt_t *stmt TSRMLS_DC)
 {
-       pdo_dbh_t *dbh = stmt->dbh;
        pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data;
        pdo_mysql_db_handle *H = S->H;