]> granicus.if.org Git - php/commitdiff
Remove a warning by explicitly compiling out a non-used variable
authorAndrey Hristov <andrey@php.net>
Tue, 2 Aug 2011 15:30:58 +0000 (15:30 +0000)
committerAndrey Hristov <andrey@php.net>
Tue, 2 Aug 2011 15:30:58 +0000 (15:30 +0000)
ext/mysqli/mysqli_api.c

index 7e28cce2691ec8fef80809246fcd251558e2ae1b..4d1a255b299f8f91173d94e573e5d15852046d1a 100644 (file)
@@ -2233,7 +2233,9 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
        MY_STMT *stmt;
        zval    *mysql_stmt;
        long    mode_in;
+#if MYSQL_VERSION_ID >= 50107
        my_bool mode_b;
+#endif
        ulong   mode;
        ulong   attr;
        void    *mode_p;