From 499f033247c53f4db02f8ae7f7e6b3fe6369a10c Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Mon, 29 Oct 2018 11:44:23 +0100 Subject: Fix for PHP 5.3 (Amzn 2018.03) build failures --- php/src/php5/Config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'php/src/php5/Config.h') diff --git a/php/src/php5/Config.h b/php/src/php5/Config.h index 62a1e144a6e..0a2072b2dd9 100644 --- a/php/src/php5/Config.h +++ b/php/src/php5/Config.h @@ -50,6 +50,13 @@ extern "C" # pragma GCC diagnostic warning "-Wnarrowing" #endif +// +// Ignore redundant redeclarations from php 5.3 php-output.h header. +// +#if defined(__GNUC__) && PHP_VERSION_ID < 50400 +# pragma GCC diagnostic ignored "-Wredundant-decls" +#endif + // // The php.h header defines/undefines NDEBUG based on how the PHP binary was built. // As a result, asserts are always disabled unless building against a php binary -- cgit v1.2.3