> > 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
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 firstname.lastname@example.org Please read the FAQ at http://www.tux.org/lkml/