Re: [PATCH] HID: roccat: Drop cast
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2014-06-30 09:08:13
Also in:
lkml
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2014-06-30 09:08:13
Also in:
lkml
On Sun, Jun 29, 2014 at 8:25 PM, Joe Perches [off-list ref] wrote:
I think I've seen code in the kernel like
char *p2 = (void *)p;
where p is const and p2 is dereferenced and set.
I can imagine there's code like that.
Still hoping for gcc to gain an option to warn about all casts, except in header
files...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds