Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker!bloom-beacon!tada From: tada@athena.mit.edu (Michael J Zehr) Newsgroups: comp.lang.c Subject: Re: VAX C Doesn't care about prototypes. Summary: /standard=portable Message-ID: <1990Jul21.173650.14290@athena.mit.edu> Date: 21 Jul 90 17:36:50 GMT References: <1990Jul20.184748.4362@lotus.com> <17130@haddock.ima.isc.com> Sender: daemon@athena.mit.edu (Mr Background) Organization: Massachusetts Institute of Technology Lines: 18 In article <17130@haddock.ima.isc.com> karl@kelp.ima.isc.com (Karl Heuer) writes: >In article <1990Jul20.184748.4362@lotus.com> blambert@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@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