From 55514a111935153ff33ef26aac0545567b8e12f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 10 Jan 2023 10:02:49 +0100 Subject: [PATCH] fix: indirect_return compilation warning Closes GH-10274 Signed-off-by: George Peter Banyard --- Zend/zend_portability.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_portability.h b/Zend/zend_portability.h index 74f8be3c1a2..8f545ecba80 100644 --- a/Zend/zend_portability.h +++ b/Zend/zend_portability.h @@ -679,7 +679,7 @@ extern "C++" { # define ZEND_VOIDP(ptr) (ptr) #endif -#if defined(__GNUC__) && ZEND_GCC_VERSION >= 9000 +#if __has_attribute(__indirect_return__) # define ZEND_INDIRECT_RETURN __attribute__((__indirect_return__)) #else # define ZEND_INDIRECT_RETURN