Subject: Re: void * arithmetic
To: None <firstname.lastname@example.org>
From: Christos Zoulas <email@example.com>
Date: 01/08/1999 13:43:55
In article <199901081238.NAA18227@animal.cs.chalmers.se> firstname.lastname@example.org (Lennart Augustsson) writes:
>What's the policy about using arithmetic on void * in the kernel?
>It's not ANSI (as far as I know), but works with gcc.
>I try to avoid it, and it seems others do too, but there are
>a dozen uses of it in the kernel. If they shouldn't be there
>I can take care of them.
>Furthermore, if they shouldn't be there we should add -Wpointer-arith
>to the compiler flags.
We should add -Wpointer-arith; we'd like to get the void * pointer arithmetic
out of the kernel.