lkml.org 
[lkml]   [1999]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.146 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site