Subject: void * arithmetic
To: None <tech-kern@netbsd.org>
From: Lennart Augustsson <augustss@cs.chalmers.se>
List: tech-kern
Date: 01/08/1999 13:38:17
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.
-- Lennart