VAX C Doesn't care about prototypes.

Michael J Zehr tada at athena.mit.edu
Sun Jul 22 03:36:50 AEST 1990


In article <17130 at haddock.ima.isc.com> karl at kelp.ima.isc.com (Karl Heuer) writes:
>In article <1990Jul20.184748.4362 at lotus.com> blambert at lotus.UUCP (Brian Lambert) writes:
>>void x(B *b);
>>    A a;
>>    x(&a); /* does not generate a warning */
>
>File a bug report.  The arguments are *not* assignment compatible.
>Karl W. Z. Heuer (karl at kelp.ima.isc.com or ima!kelp!karl), The Walking Lint

No, don't file a bug report. this is documented behavior for the Vax C
compiler (which obviously isn't fully ansi-compatible yet).

try cc /standard=portable instead. that will warn about pointers to
incorrect types, or different levels of indirection (like char * vs.
char **), plus a number of other warnings that are not reported by
default.

-michael j zehr



More information about the Comp.lang.c mailing list