iliaa           Thu Nov 16 17:34:42 2006 UTC

  Modified files:              
    /php-src/ext/pdo_firebird   firebird_driver.c 
    /php-src/ext/pdo_pgsql      pgsql_statement.c 
  Log:
  MFB: fixed compiler warnings
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_firebird/firebird_driver.c?r1=1.19&r2=1.20&diff_format=u
Index: php-src/ext/pdo_firebird/firebird_driver.c
diff -u php-src/ext/pdo_firebird/firebird_driver.c:1.19 
php-src/ext/pdo_firebird/firebird_driver.c:1.20
--- php-src/ext/pdo_firebird/firebird_driver.c:1.19     Sun Jan  1 13:09:52 2006
+++ php-src/ext/pdo_firebird/firebird_driver.c  Thu Nov 16 17:34:42 2006
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: firebird_driver.c,v 1.19 2006/01/01 13:09:52 sniper Exp $ */
+/* $Id: firebird_driver.c,v 1.20 2006/11/16 17:34:42 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -38,8 +38,10 @@
 /* map driver specific error message to PDO error */
 void _firebird_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, char const *file, long 
line TSRMLS_DC) /* {{{ */
 {
+#if 0
        pdo_firebird_db_handle *H = stmt ? ((pdo_firebird_stmt 
*)stmt->driver_data)->H 
                : (pdo_firebird_db_handle *)dbh->driver_data;
+#endif
        pdo_error_type *const error_code = stmt ? &stmt->error_code : 
&dbh->error_code;
        
 #if 0
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_pgsql/pgsql_statement.c?r1=1.40&r2=1.41&diff_format=u
Index: php-src/ext/pdo_pgsql/pgsql_statement.c
diff -u php-src/ext/pdo_pgsql/pgsql_statement.c:1.40 
php-src/ext/pdo_pgsql/pgsql_statement.c:1.41
--- php-src/ext/pdo_pgsql/pgsql_statement.c:1.40        Tue Oct 31 19:13:41 2006
+++ php-src/ext/pdo_pgsql/pgsql_statement.c     Thu Nov 16 17:34:42 2006
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pgsql_statement.c,v 1.40 2006/10/31 19:13:41 helly Exp $ */
+/* $Id: pgsql_statement.c,v 1.41 2006/11/16 17:34:42 iliaa Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -158,8 +158,9 @@
 static int pgsql_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data 
*param,
                enum pdo_param_event event_type TSRMLS_DC)
 {
-       pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data;
 #if HAVE_PQPREPARE
+       pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data;
+
        if (S->stmt_name && param->is_param) {
                switch (event_type) {
                        case PDO_PARAM_EVT_ALLOC:

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to