diff options
author | Nikita Popov <nikic@php.net> | 2016-02-04 13:31:21 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-02-04 13:34:19 +0100 |
commit | af66ad28571fc3d55c33bd3b301a5508192bcdac (patch) | |
tree | 49e2794177a02483294d382402eea3018ec48147 /Zend/zend_string.h | |
parent | fbe50b15dd46ad44d67472e7ba6f12c9015878d1 (diff) | |
download | php-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.h | 2 |
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) { |