Patch to Add -Wunused-returns

Neil Booth neil@daikokuya.demon.co.uk
Fri Dec 7 02:03:00 GMT 2001


David E. Weekly wrote:-

> +/* Check to see if a non-void function's return value is ignored. */

Comments end in full stop followed by 2 spaces in GCC.

> +  /* Make sure our expression is a function. */

> +/* Warn about unused return values from non-void functions. */

Neil.



More information about the Gcc mailing list