This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: a suspicious gcc warning
- To: Stane Gruden <staneg at rd dot iskraemeco dot si>
- Subject: Re: a suspicious gcc warning
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- Date: Tue, 13 Feb 2001 01:52:37 -0500
- Cc: gcc at gcc dot gnu dot org
- References: <3A88D759.3C9EE797@rd.iskraemeco.si>
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