GCC 2.95.3 and -Wreturn-type

Ken Moffat ken at kenmoffat.uklinux.net
Wed May 28 23:44:19 PDT 2003


On Wed, 28 May 2003, Zack Winkles wrote:

>
> As you can see it doesn't work. Now we'll test the patched version:
>
> 	$ gcc2 -o test test.c
> 	$ gcc2 -o -Wreturn-type -o test test.c
> 	test.c: In function `main':
> 	test.c:1: warning: control reaches end of non-void function
> 	$ gcc2 -o -Wno-return-type -o test test.c
>
> Obviously this patch fixes the issue. It's strange that it didn't work
> before, because all of the necessary infrastructure was available in the
> backend, the only thing missing was making cc1 aware of them.
>
> Well, here it is. Take it or leave it, I don't care either way.
>
> Later,
> Zack
>
>

 Thanks, Zack.

Who would have tought it would be so straightforward ?  Definitely
better than bringing g++-2.95 along for the ride.

Ken

-- 
Live Long or Prosper! No, wait, that wasn't it...
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list