Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site burl.UUCP Path: utzoo!watmath!clyde!burl!rcj From: rcj@burl.UUCP (Curtis Jackson) Newsgroups: net.lang.c,net.bugs,net.unix-wizards Subject: weird C-compiler error message Message-ID: <1297@burl.UUCP> Date: Thu, 5-Jun-86 11:31:44 EDT Article-I.D.: burl.1297 Posted: Thu Jun 5 11:31:44 1986 Date-Received: Sat, 7-Jun-86 05:36:45 EDT Reply-To: rcj@burl.UUCP (Curtis Jackson) Organization: AT&T Technologies, Burlington NC Lines: 25 Xref: watmath net.lang.c:9317 net.bugs:815 net.unix-wizards:18284 Hi. We're talking SVR2 Unix on a Vax 11/780 here. A novice user was playing around with C and wrote a program that started like this: int f1, f2; /* other variable declarations, too */ main(argc,argv) int argc, f1, f2; char **argv; { On lines 27 and 30 of his program, he referenced the variable "f2". Our illustrious (actually usually pretty damn good) C compiler said: 27: warning: bad arg temp 30: warning: bad arg temp And that is it; there is nothing resembling "temp" in the program. How informative can ya get for your novices? ;-) -- The MAD Programmer -- 919-228-3313 (Cornet 291) alias: Curtis Jackson ...![ ihnp4 ulysses cbosgd allegra ]!burl!rcj ...![ ihnp4 cbosgd akgua watmath ]!clyde!rcj