summaryrefslogtreecommitdiff
path: root/Zend/zend_string.h
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-02-04 13:31:21 +0100
committerNikita Popov <nikic@php.net>2016-02-04 13:34:19 +0100
commitaf66ad28571fc3d55c33bd3b301a5508192bcdac (patch)
tree49e2794177a02483294d382402eea3018ec48147 /Zend/zend_string.h
parentfbe50b15dd46ad44d67472e7ba6f12c9015878d1 (diff)
downloadphp-git-af66ad28571fc3d55c33bd3b301a5508192bcdac.tar.gz
Remove use of register keyword in headers
Headers must be C++ compatible -- this throws warnings. The register keyword is not used for optimization, at least not in optimized builds.
Diffstat (limited to 'Zend/zend_string.h')
-rw-r--r--Zend/zend_string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_string.h b/Zend/zend_string.h
index 722fc3ae46..28aebb0ffc 100644
--- a/Zend/zend_string.h
+++ b/Zend/zend_string.h
@@ -323,7 +323,7 @@ static zend_always_inline zend_bool zend_string_equals(zend_string *s1, zend_str
static zend_always_inline zend_ulong zend_inline_hash_func(const char *str, size_t len)
{
- register zend_ulong hash = Z_UL(5381);
+ zend_ulong hash = Z_UL(5381);
/* variant with the hash unrolled eight times */
for (; len >= 8; len -= 8) {