com php-src: Fix few compiler warnings.: ext/opcache/jit/zend _jit_helpers.c sapi/phpdbg/phpdbg_watch.c

From: Date: Sun, 07 Apr 2019 22:00:09 +0000
Subject: com php-src: Fix few compiler warnings.: ext/opcache/jit/zend _jit_helpers.c sapi/phpdbg/phpdbg_watch.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105558@lists.php.net to get a copy of this message
Commit: 914b27acb708dfe9f5c5be6acbf1d8de70ffc00f Author: David Carlier <devnexen@gmail.com> Sat, 6 Apr 2019 19:17:35 +0100 Committer: Peter Kokot <peterkokot@gmail.com> Mon, 8 Apr 2019 00:00:09 +0200 Parents: 6d8d48498eadd982213b0a3197b3c01012f7725f Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=914b27acb708dfe9f5c5be6acbf1d8de70ffc00f Log: Fix few compiler warnings. Changed paths: M ext/opcache/jit/zend_jit_helpers.c M sapi/phpdbg/phpdbg_watch.c Diff: diff --git a/ext/opcache/jit/zend_jit_helpers.c b/ext/opcache/jit/zend_jit_helpers.c index 1918cbf..c2cac6f 100644 --- a/ext/opcache/jit/zend_jit_helpers.c +++ b/ext/opcache/jit/zend_jit_helpers.c @@ -863,7 +863,7 @@ static zend_never_inline ZEND_COLD void zend_wrong_string_offset(void) EMPTY_SWITCH_DEFAULT_CASE(); } ZEND_ASSERT(msg != NULL); - zend_throw_error(NULL, msg); + zend_throw_error(NULL, "%s", msg); } static zend_never_inline void zend_assign_to_string_offset(zval *str, zval *dim, zval *value, zval *result) diff --git a/sapi/phpdbg/phpdbg_watch.c b/sapi/phpdbg/phpdbg_watch.c index 35d316b..e137f14 100644 --- a/sapi/phpdbg/phpdbg_watch.c +++ b/sapi/phpdbg/phpdbg_watch.c @@ -1014,7 +1014,7 @@ void phpdbg_check_watchpoint(phpdbg_watchpoint_t *watch) { } if (watch->type == WATCH_ON_BUCKET) { if (watch->backup.bucket.key != watch->addr.bucket->key || (watch->backup.bucket.key != NULL && watch->backup.bucket.h != watch->addr.bucket->h)) { - phpdbg_watch_element *element; + phpdbg_watch_element *element = NULL; zval *new; ZEND_HASH_FOREACH_PTR(&watch->elements, element) {

« previous php.cvs (#105558) next »