]> git.ipfire.org Git - thirdparty/autoconf.git/commit
More fixes for compilers that reject K&R function definitions.
authorZack Weinberg <zackw@panix.com>
Thu, 10 Nov 2022 17:05:30 +0000 (12:05 -0500)
committerZack Weinberg <zackw@panix.com>
Thu, 10 Nov 2022 17:05:30 +0000 (12:05 -0500)
commitbf5a75953b6d504f0405b1ca33b039b8dd39eef4
tree8b1a52b7faac92dc9d4892d9a11b0070701f5cd8
parent3cc9b414aa91f0bf83ae0b48bf4d8fe0aecf71dc
More fixes for compilers that reject K&R function definitions.

This fixes all of the remaining failures exposed by running the
testsuite with GCC 12 and
CC='cc -Wimplicit-function-declaration -Wold-style-definition
       -Wimplicit-int -Werror'
.

* lib/autoconf/c.m4 (_AC_C_C89_TEST_GLOBALS): Don’t use K&R function
  definitions.
* lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
  (AC_FUNC_MKTIME): Declare functions taking no arguments as ‘fn (void)’
  not ‘fn ()’.
* lib/autoconf/c.m4 (_AC_C_C99_TEST_GLOBALS): Declare free().
lib/autoconf/c.m4
lib/autoconf/functions.m4
lib/autoconf/specific.m4