pointer <-> integer round-up
Tom Lord
lord@emf.net
Thu Mar 21 15:12:00 GMT 2002
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
More information about the Gcc
mailing list