named warnings & individual warning control

Andrew Pinski pinskia@physics.uc.edu
Sat Jun 26 02:51:00 GMT 2004


> 
> Joe Buck wrote:
> 
> >On Fri, Jun 25, 2004 at 04:02:19PM -0700, Stan Shebs wrote:
> Or,
> 
>     T* ptr_T __attribute__((I_know_what_Im_doing));
> 
> to suppress the warning selectively, if the user absolutely
> must make it go away.


Or use the documented way of getting disable the warning:

  T *ptr_T = ptr_T;

(which can be turned off by -Winit-self).


Thanks,
Andrew Pinski



More information about the Gcc mailing list