php-src/TSRM
Michael Orlitzky fa65873502 */*.m4: update main() signatures.
The next generation of C compilers is going to enforce the C standard
more strictly:

  https://wiki.gentoo.org/wiki/Modern_C_porting

One warning that will soon become an error is -Wstrict-prototypes.
This is relatively easy to catch in most code (it will fail to
compile), but inside of autoconf tests it can go unnoticed because
many feature-test compilations fail by design. For example,

  $ export CFLAGS="$CFLAGS -Werror=strict-prototypes"
  $ ./configure
  ...
  checking if iconv supports errno... no
  configure: error: iconv does not support errno

(this is on a system where iconv *does* support errno). If errno
support were optional, that test would have "silently" disabled
it. The underlying issue here, from config.log, is

  conftest.c:211:5: error: function declaration isn't a prototype
  [-Werror=strict-prototypes]
    211 | int main() {

This commit goes through all of our autoconf tests, replacing main()
with main(void). Up to equivalent types and variable renamings, that's
one of the two valid signatures, and satisfies the compiler (gcc-12 in
this case).

Fixes GH-10751
2023-03-07 15:32:30 +00:00
..
config.w32 Remove unused tsrm_strtok_r() function 2019-07-12 13:14:24 +02:00
LICENSE - Update to 2006 2006-01-04 23:55:42 +00:00
threads.m4 */*.m4: update main() signatures. 2023-03-07 15:32:30 +00:00
tsrm_win32.c Merge branch 'PHP-8.1' into PHP-8.2 2023-02-07 13:38:39 +03:00
tsrm_win32.h Join shm_pair.info and .segment of Windows shm implementation 2022-06-10 17:18:27 +02:00
TSRM.c Fix strict prototypes warnings 2023-02-17 15:14:30 +01:00
TSRM.h fix: no-op when signal handlers are called on threads not managed by PHP (#9766) 2022-10-22 11:17:27 +02:00
tsrm.m4 Merge branch 'PHP-7.4' 2019-07-01 13:26:17 +02:00