Messages in this thread | | | Date | Tue, 3 Aug 1999 18:25:50 +0100 | From | Steve Dodd <> | Subject | Re: WARNING: GCC 2.9.5 & Linux |
| |
On Tue, Aug 03, 1999 at 11:47:00AM +0200, Kai Henningsen wrote:
> > The ANSI C standard prohibits accessing data through a pointer to a > > different type. I.e., this is wrong:
> Nearly. Except it's defined to be ok if one of your two pointers is a > char* pointer, so your example doesn't work. Try int* and short*, for > example.
Would it possible, then, to add a (debugging) option to the compiler which would force it to /always/ try and break the illegal cases? That would make chasing the things down easier.
-- Satellite Safety Tip #14: If you see a bright streak in the sky coming at you, duck.
- 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/
| |