weird C-compiler error message

Curtis Jackson rcj at burl.UUCP
Fri Jun 6 01:31:44 AEST 1986


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



More information about the Comp.lang.c mailing list