texinfo 7.1.1 fails to compile with gcc 14 mingw toolchain

Biswapriyo Nath <[email protected]> Tue, 10 Sep 2024 19:00:15 +0530
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <CALK-3mL87Gn5xCTPt251MrzeBB6tE_GvMBrP01NhCjcSfUZwag@mail.gmail.com>
I am trying to compile texinfo 7.1.1 with gcc 14 mingw toolchain and
got the following compiler error.

pcterm.c: In function 'pc_initialize_terminal':
pcterm.c:1297:37: error: assignment to 'int (*)(void)' from
incompatible pointer type 'void (*)(void)'
[-Wincompatible-pointer-types]
 1297 |   terminal_prep_terminal_hook       = pc_prep_terminal;
      |                                     ^

Could anyone fix the compiler error in texinfo repository?

Thank you.