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 /ext/standard/php_smart_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 'ext/standard/php_smart_string.h')
-rw-r--r-- | ext/standard/php_smart_string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/php_smart_string.h b/ext/standard/php_smart_string.h index a832376064..58c319a5a5 100644 --- a/ext/standard/php_smart_string.h +++ b/ext/standard/php_smart_string.h @@ -93,7 +93,7 @@ smart_string_append_unsigned_ex((dest), (val), 0) #define smart_string_appendc_ex(dest, ch, what) do { \ - register size_t __nl; \ + size_t __nl; \ smart_string_alloc4((dest), 1, (what), __nl); \ (dest)->len = __nl; \ ((unsigned char *) (dest)->c)[(dest)->len - 1] = (ch); \ @@ -109,7 +109,7 @@ } while (0) #define smart_string_appendl_ex(dest, src, nlen, what) do { \ - register size_t __nl; \ + size_t __nl; \ smart_string *__dest = (smart_string *) (dest); \ \ smart_string_alloc4(__dest, (nlen), (what), __nl); \ |