From: Ilia Alshanetsky Date: Tue, 29 Nov 2005 18:17:46 +0000 (+0000) Subject: Fixed compiler warnings X-Git-Tag: php-5.1.2RC1~314 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d79e01e2112a06f5e4070c61a13d3ee693bfd553;p=php Fixed compiler warnings --- 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); }