This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: pointer <-> integer round-up
- From: Tom Lord <lord at emf dot net>
- To: dewar at gnat dot com
- Cc: apl at alum dot mit dot edu, dewar at gnat dot com, fjh at cs dot mu dot OZ dot AU, gcc at gcc dot gnu dot org
- Date: Thu, 21 Mar 2002 15:10:14 -0800 (PST)
- Subject: Re: pointer <-> integer round-up
- References: <20020321190140.40DC1F28F1@nile.gnat.com>
From: dewar@gnat.com (Robert Dewar)
<< How about the fact that *many* organizations have development processes
that require that
the product builds must compile without any warnings or errors?
>>
Of course! In particular GNAT requires that all code compile warning free
(both the C and Ada parts). But that's not a reason for having *portable*
ways of removing warnings for non-portable code!
In other areas, GCC already has portable ways of removing warnings
for non-portable code.
Should:
char * x;
short * y;
[...]
y = (short *)x;
always generate a warning?
-t