Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!lotus!blambert From: blambert@lotus.com (Brian Lambert) Newsgroups: comp.lang.c Subject: VAX C Doesn't care about prototypes. Message-ID: <1990Jul20.154446.9992@lotus.com> Date: 20 Jul 90 15:44:46 GMT Reply-To: blambert@lotus.UUCP (Brian Lambert) Organization: Lotus Development Corp. Lines: 29 Hi: I am using VAX C (latest version, 3.something) and I ran into this weird problemthe other day. As it turns out, the following code does not generate a compilation warning: typedef struct { long foo; } A; typedef struct { short foo, bar; } B; void x(B *b); main() { A a; B b; x(&a); /* does not generate a warning */ x(&b); ... This same code generated a compiler warning using -W1 in MSC 6.0. The manual says that since the arguments are "assignment compatible" an automatic conversion is provided. I don't want this - is there a way to disable this less-than-useful functionality? Thanks, brian lambert --- nothing interesting in here