a suspicious gcc warning

Craig Rodrigues rodrigc@mediaone.net
Mon Feb 12 22:53:00 GMT 2001


On Tue, Feb 13, 2001 at 07:42:33AM +0100, Stane Gruden wrote:
> Hi,
> 
> I have a question about one gcc warning. Why does the following 
> code:
> 
>   typedef char TMy[4];
>   void a(const TMy *b){}
> 
>   main(){
>     TMy my;
>     a(&my);  
>   }
> 
> issue the next warning:
> 
>   'passing arg 1 of `a' from incompatible pointer type'?

The version of gcc in CVS does not issue this warning.
-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net          



More information about the Gcc mailing list