lint and enums

whm at bocklin.UUCP whm at bocklin.UUCP
Sat Jun 29 20:26:15 AEST 1985


In the following program, lint says that the argument to f is used
inconsistently.  I assume that this is some sort of a fundamental
problem with incomplete treatment of enums by lint, but on the off
chance that it isn't, I thought I'd ask to see if anyone has a fix
for this.

    typedef enum tk{t1, t2} token;
    token a[] = {t1, t2};
    main()
    {
	    f(a);

    }
    f(b)
    token b[];
    {
	    b[1];
    }

					Bill Mitchell
					whm%arizona at csnet-relay
					{ihnp4,noao,mcnc,utah-cs}!arizona!whm



More information about the Comp.lang.c mailing list