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]

Re: a suspicious gcc warning


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          


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