gold patch: use strict prototypes with .c files

Andreas Schwab schwab@suse.de
Wed Nov 5 09:20:00 GMT 2008


csilvers@google.com (Craig Silverstein) writes:

> +/* Obviously, main doesn't actually take 0 arguments, but we don't use
> + * the arguments, and this quiets gcc -Wstrict-prototypes.  */
>  int
> -main()
> +main(void)

This is actually a strictly correct prototype for main (see 5.1.2.2.1
Program startup).

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Binutils mailing list