com php-src: Remove restrict zend_portability define: Z end/zend_portability.h

From: Date: Thu, 11 Apr 2019 13:32:30 +0000
Subject: com php-src: Remove restrict zend_portability define: Z end/zend_portability.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105665@lists.php.net to get a copy of this message
Commit: c51eafe931464e920c628b9cfa03a26878f352fb Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 11 Apr 2019 15:32:30 +0200 Parents: 2d823cb6811cf51675693d4405b4f16f75acac2b Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c51eafe931464e920c628b9cfa03a26878f352fb Log: 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. Changed paths: M Zend/zend_portability.h Diff: diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h index 56b7a1a..b0eb20b 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))

« previous php.cvs (#105665) next »