lkml.org 
[lkml]   [1999]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: 2.2.10-ac7 compile errors on Alpha
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:3.773 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site