Re: 2.2.10-ac7 compile errors on Alpha

Philipp Thomas (kthomas@gwdg.de)
Sun, 04 Jul 1999 08:37:40 GMT


On Fri, 02 Jul 1999 22:08:31 +0100, Philip Blundell
<Philip.Blundell@pobox.com> wrote:

>>'s' is declared as a (void *).
>>What is the value of a (void *) -1 ????

>GNU C does allow pointer arithmetic on (void *). See the GCC manual.

Yes, but it will warn when you use -W because it's a gcc extension.
And in most cases I've seen using void pointers in pointer arithmetic
it could just as well have been casted to char*. IMO this is one of
those GNU extensions that weren't very well thought out.

Philipp

-- 
You have moved your mouse. Windows must be rebooted for the
changes to take effect.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/