From: Nikita Popov <nikita.ppv@gmail.com> Date: Thu, 11 Apr 2019 13:32:30 +0000 (+0200) Subject: Remove restrict zend_portability define X-Git-Tag: php-7.4.0alpha1~546 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c51eafe931464e920c628b9cfa03a26878f352fb;p=php Remove restrict zend_portability define We're not using this anywhere, and it causes warnings, so I'm dropping it. If we do end up needing this, it should be reintroduced with a ZEND_ prefix. --- diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h index 56b7a1ada3..b0eb20bf40 100644 --- a/Zend/zend_portability.h +++ b/Zend/zend_portability.h @@ -256,14 +256,6 @@ char *alloca(); # define ZEND_FASTCALL #endif -#ifndef restrict -# if defined(__GNUC__) && ZEND_GCC_VERSION >= 3004 -# else -# define __restrict__ -# endif -# define restrict __restrict__ -#endif - #if (defined(__GNUC__) && __GNUC__ >= 3 && !defined(__INTEL_COMPILER) && !defined(DARWIN) && !defined(__hpux) && !defined(_AIX) && !defined(__osf__)) || __has_attribute(noreturn) # define HAVE_NORETURN # define ZEND_NORETURN __attribute__((noreturn))