Re: Is it possible to make void * safer?
- From: Ian Collins <ian-news@xxxxxxxxxxx>
- Date: Fri, 24 Feb 2006 14:13:39 +1300
websnarf@xxxxxxxxx wrote:
Will generate warnings for x.push( &array, &f );
Have you tried it? After adding in a return 0; MSVC 6.0 says there are
no problems at its highest warning level.
Well it should. That's a rather old and non-compliant compiler.
Sun cc (normal warnings) gives:
"/tmp/x.c", line 28: warning: argument #2 is incompatible with prototype:
prototype: pointer to int : "unknown", line 0
argument : pointer to float
gcc (normal warnings) gives:
/tmp/x.c: In function `main':
/tmp/x.c:28: warning: passing arg 2 of pointer to function from incompatible pointer type
--
Ian Collins.
.
- References:
- Is it possible to make void * safer?
- From: Clint Olsen
- Re: Is it possible to make void * safer?
- From: websnarf
- Re: Is it possible to make void * safer?
- From: Clint Olsen
- Re: Is it possible to make void * safer?
- From: Ian Collins
- Re: Is it possible to make void * safer?
- From: websnarf
- Re: Is it possible to make void * safer?
- From: Ian Collins
- Re: Is it possible to make void * safer?
- From: websnarf
- Re: Is it possible to make void * safer?
- From: Ian Collins
- Re: Is it possible to make void * safer?
- From: websnarf
- Is it possible to make void * safer?
- Prev by Date: Re: remove entry from text file [NOT A HOMEWORK]
- Next by Date: Re: Seriously struggling with C
- Previous by thread: Re: Is it possible to make void * safer?
- Next by thread: Re: Is it possible to make void * safer?
- Index(es):
Relevant Pages
|
|