diff options
author | Christopher Jones <sixd@php.net> | 2013-08-20 10:33:00 -0700 |
---|---|---|
committer | Christopher Jones <sixd@php.net> | 2013-08-20 10:33:00 -0700 |
commit | b455ba971c3758a9314e3bf7d56b03264d889b60 (patch) | |
tree | bacb457f1e13ef49d2e42045c6108a6917d95557 /ext/pdo_oci | |
parent | 72d1ec883e73cfa5efc8e20314de2677440e00e7 (diff) | |
download | php-git-b455ba971c3758a9314e3bf7d56b03264d889b60.tar.gz |
Remove some compilation warnings:
'unused variable' and
'enumeration value not handled in switch'
Diffstat (limited to 'ext/pdo_oci')
-rw-r--r-- | ext/pdo_oci/oci_driver.c | 2 | ||||
-rw-r--r-- | ext/pdo_oci/oci_statement.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ext/pdo_oci/oci_driver.c b/ext/pdo_oci/oci_driver.c index 5497bebc64..fcdefa94b3 100644 --- a/ext/pdo_oci/oci_driver.c +++ b/ext/pdo_oci/oci_driver.c @@ -537,7 +537,9 @@ static int pdo_oci_check_liveness(pdo_dbh_t *dbh TSRMLS_DC) /* {{{ */ { pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data; sb4 error_code = 0; +#if (!((OCI_MAJOR_VERSION > 10) || ((OCI_MAJOR_VERSION == 10) && (OCI_MINOR_VERSION >= 2)))) char version[256]; +#endif /* TODO move attached check to PDO level */ if (H->attached == 0) { diff --git a/ext/pdo_oci/oci_statement.c b/ext/pdo_oci/oci_statement.c index dcb9557803..6a74efa7ba 100644 --- a/ext/pdo_oci/oci_statement.c +++ b/ext/pdo_oci/oci_statement.c @@ -270,6 +270,12 @@ static int oci_stmt_param_hook(pdo_stmt_t *stmt, struct pdo_bound_param_data *pa P = (pdo_oci_bound_param*)param->driver_data; switch (event_type) { + case PDO_PARAM_EVT_FETCH_PRE: + case PDO_PARAM_EVT_FETCH_POST: + case PDO_PARAM_EVT_NORMALIZE: + /* Do nothing */ + break; + case PDO_PARAM_EVT_FREE: P = param->driver_data; if (P) { |