[php-src] PHP-8.2: Fix GH-13727: Building with -Werror=strict-prototypes (#14029)
| From: | Peter Kokot via GitHub | Date: | Mon, 22 Apr 2024 19:21:47 +0000 |
| Subject: | [php-src] PHP-8.2: Fix GH-13727: Building with -Werror=strict-prototypes (#14029) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-128206@lists.php.net to get a copy of this message | ||
Author: Peter Kokot (petk)
Committer: GitHub (web-flow)
Pusher: petk
Date: 2024-04-22T21:21:40+02:00
Commit: https://github.com/php/php-src/commit/44775b7617f8e078df1c5ee6cadccd454e63cae0
Raw diff: https://github.com/php/php-src/commit/44775b7617f8e078df1c5ee6cadccd454e63cae0.diff
Fix GH-13727: Building with -Werror=strict-prototypes (#14029)
This is addon to the GH-13727 bug fix. When configuring the build with:
./configure CFLAGS=-Werror=strict-prototypes
libtool check for parsing nm command would fail:
checking command to parse /usr/bin/nm -B output from cc object... failed
Upstream libtool has this specific check already fixed. Note that this
works only with Autoconf version 2.72 and later and is preparation for
future compilers that might have this error enabled by default.
Changed paths:
M NEWS
M build/libtool.m4
Diff:
diff --git a/NEWS b/NEWS
index 39b6e539737b..087409db243e 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ PHP NEWS
. Fixed bug GH-14013 (Erroneous dnl appended in configure). (Peter Kokot)
. Fixed bug GH-10232 (If autoloading occurs during constant resolution
filename and lineno are identified incorrectly). (ranvis)
+ . Fixed bug GH-13727 (Missing void keyword). (Peter Kokot)
- Fibers:
. Fixed bug GH-13903 (ASAN false positive underflow when executing copy()).
diff --git a/build/libtool.m4 b/build/libtool.m4
index 5b518d50e4ef..0b9528d7dc7b 100644
--- a/build/libtool.m4
+++ b/build/libtool.m4
@@ -4636,7 +4636,7 @@ for ac_symprfx in "" "_"; do
extern "C" {
#endif
char nm_test_var;
-void nm_test_func(){}
+void nm_test_func(void){}
#ifdef __cplusplus
}
#endif