This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pointer <-> integer round-up




   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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]