diff options
| author | Remi Collet <remi@remirepo.net> | 2024-11-25 16:31:30 +0100 | 
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2024-11-25 16:31:30 +0100 | 
| commit | 479b0400d0b2cb380b318ea252a992beb0924b9a (patch) | |
| tree | 00c4fefcc7e3c052246206d7f26bd6114ad5986a /0001-Fix-Wincompatible-pointer-types.patch | |
| parent | 7976ea65bb807684e6d0dbe5fbefb0e58ff6eb3c (diff) | |
Diffstat (limited to '0001-Fix-Wincompatible-pointer-types.patch')
| -rw-r--r-- | 0001-Fix-Wincompatible-pointer-types.patch | 42 | 
1 files changed, 42 insertions, 0 deletions
| diff --git a/0001-Fix-Wincompatible-pointer-types.patch b/0001-Fix-Wincompatible-pointer-types.patch new file mode 100644 index 0000000..c5c98a2 --- /dev/null +++ b/0001-Fix-Wincompatible-pointer-types.patch @@ -0,0 +1,42 @@ +From 8af410e10a4e20c8ca87b1e8904bcd7c05344ace Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Mon, 19 Feb 2024 14:56:01 +0100 +Subject: [PATCH] Fix [-Wincompatible-pointer-types] + +--- + php_stats.c | 13 ++++++++----- + 1 file changed, 8 insertions(+), 5 deletions(-) + +diff --git a/php_stats.c b/php_stats.c +index 7418dd8..851cb12 100644 +--- a/php_stats.c ++++ b/php_stats.c +@@ -111,17 +111,20 @@ PHP_MINFO_FUNCTION(stats) +  * +  * This is not correct any more, depends on what compare_func is set to. +  */ ++#if PHP_VERSION_ID < 80000 + static int stats_array_data_compare(const void *a, const void *b) + { +-	Bucket *f; +-	Bucket *s; ++	Bucket *f = (Bucket *) a; ++	Bucket *s = (Bucket *) b; ++#else ++static int stats_array_data_compare(Bucket *f, Bucket *s) ++{ ++#endif ++ + 	int result; + 	zval first; + 	zval second; +  +-	f = (Bucket *) a; +-	s = (Bucket *) b; +- + 	first = f->val; + 	second = s->val; +  +--  +2.43.2 + | 
