Hi, George R Goffe <grgo...@yahoo.com> writes:
> I've been trying to build bash from a repository > "https://git.savannah.gnu.org/git/bash.git" and a having the devil's own time > in the process. > > Did I just catch the repository in the middle of a rework? I have a > full log of the build process if it's needed. The failure appears with > the nonexperimental GCC as well as a version I built a few days ago > from their repository. gcc-15.0.1-0.9.fc42.x86_64 or gcc (GCC) 15.0.1 > 20250320 (experimental). > > I'm seeing a TON of messages like these, am I doing something wrong? Recent versions of GCC and Clang have gotten strict about function prototypes since C23 made the following: int foo (); equal to: int foo (void); In previous versions of C this was not true, 'foo' was just declared as a function without any information about number of arguments or their type. C23 also got rid of K&R declarations like: int main (argc, argv) int argc; char *argv; { ... } This is why you now see the warnings after upgrading to Fedora 42 with a new C compiler. Try building from the 'devel' branch where prototypes have been fixed. Collin