Re: kernel and egcs

Linus Torvalds (torvalds@transmeta.com)
25 Jan 1998 23:13:08 GMT


In article <19980125232415.29326@noris.de>,
Matthias Urlichs <smurf@noris.de> wrote:
>
>That's not a stupid warning. memcpy is _defined_ to return its destination
>address.

That wasn't the issue. If the compiler had been smarter it would have
noticed that the thing is never reached.

In short, it _is_ a stupid warning, even though it is understandable.

>The alternate solution would be to declare memcpy to return void. But then
>we really shouldn't call it memcpy() any more.

Go back and look at the patch. The code does the right thing, the
warning is incorrect.

Linus