autotools-mirror / libtool

GNU Libtool. Mirror of git://git.savannah.gnu.org/libtool.git
https://www.gnu.org/software/libtool/
34 stars 23 forks source link

Fix Wstrict-prototypes warnings #7

Open petk opened 8 months ago

petk commented 8 months ago

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

Related to https://github.com/php/php-src/pull/13732

Edit: patch sent also to the libtool-patches mailing list.