From 5c06e5c2e020c49c3a99c88477014846e6d82b97 Mon Sep 17 00:00:00 2001 From: Matteo Beccati Date: Wed, 21 Aug 2013 11:00:31 +0200 Subject: [PATCH] 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. --- ext/pdo/php_pdo_driver.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index c757dbf1e5..ede2d6fb76 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 -- 2.40.0