com php-src: Fixed compiler warning: ext/pdo/php_pdo_driver .h
| From: | Matteo Beccati | Date: | Wed, 21 Aug 2013 09:22:32 +0000 |
| Subject: | com php-src: Fixed compiler warning: ext/pdo/php_pdo_driver .h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73052@lists.php.net to get a copy of this message | ||
Commit: 5c06e5c2e020c49c3a99c88477014846e6d82b97
Author: Matteo Beccati <mbeccati@php.net> Wed, 21 Aug 2013 11:00:31 +0200
Parents: e9b12bedc331631cbcc8605972325ca41ec50f01
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5c06e5c2e020c49c3a99c88477014846e6d82b97
Log:
Fixed compiler warning
I moved the constant to the enum in order to avoid this:
ext/pgsql/pgsql.c:3491: warning: comparison is always false due to limited range of data type
Works in gcc 4.6, but I'm not sure about other compilers.
Changed paths:
M ext/pdo/php_pdo_driver.h
Diff:
diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h
index c757dbf...ede2d6f 100644
--- a/ext/pdo/php_pdo_driver.h
+++ b/ext/pdo/php_pdo_driver.h
@@ -72,11 +72,11 @@ enum pdo_param_type {
/* get_col ptr should point to a zval*
and the driver is responsible for adding correct type information to get_column_meta()
*/
- PDO_PARAM_ZVAL
-};
+ PDO_PARAM_ZVAL,
-/* magic flag to denote a parameter as being input/output */
-#define PDO_PARAM_INPUT_OUTPUT 0x80000000
+ /* magic flag to denote a parameter as being input/output */
+ PDO_PARAM_INPUT_OUTPUT = 0x80000000
+};
#define PDO_PARAM_FLAGS 0xFFFF0000