]> git.ipfire.org Git - thirdparty/libtool.git/commit
m4: Fix Wstrict-prototypes warnings
authorPeter Kokot <peterkokot@gmail.com>
Mon, 18 Mar 2024 00:28:15 +0000 (01:28 +0100)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Fri, 19 Jul 2024 16:20:46 +0000 (19:20 +0300)
commit434a308f460380d9a9a173cc2d7cbfe6c6511575
tree3308b7d7e0c6852190ca7ff9ebd64afc7c25d897
parentcc511550bbb00001c71447ad2ff98572665e7ade
m4: Fix Wstrict-prototypes warnings

This changes the C function prototypes to use void where needed. When
building with CFLAGS=-Werror=strict-prototypes or similar, the libtool's
tests can cause false reports and errors in the log files:

    error: function declaration isn't a prototype

* m4/libtool.m4: Specify void for main function prototypes.
* m4/ltdl.m4: Specify void for main and fnord function prototypes.
m4/libtool.m4
m4/ltdl.m4