From d79e01e2112a06f5e4070c61a13d3ee693bfd553 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Tue, 29 Nov 2005 18:17:46 +0000 Subject: [PATCH] Fixed compiler warnings --- ext/pdo_pgsql/pgsql_driver.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c index b339a43837..65fb948675 100644 --- a/ext/pdo_pgsql/pgsql_driver.c +++ b/ext/pdo_pgsql/pgsql_driver.c @@ -210,11 +210,9 @@ static int pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_pgsql_stmt *S = ecalloc(1, sizeof(pdo_pgsql_stmt)); int scrollable; #if HAVE_PQPREPARE - PGresult *res; int ret; char *nsql = NULL; int nsql_len = 0; - ExecStatusType status; #endif S->H = H; @@ -490,7 +488,7 @@ static PHP_METHOD(PDO, pgsqlLOBCreate) if (lfd != InvalidOid) { char *buf; - spprintf(&buf, 0, "%lu", lfd); + spprintf(&buf, 0, "%lu", (long) lfd); RETURN_STRING(buf, 0); } -- 2.50.1