Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site bocklin.UUCP
Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!whuxl!houxm!ihnp4!mhuxn!mhuxr!ulysses!allegra!mit-eddie!think!harvard!seismo!hao!noao!arizona!bocklin!whm
From: whm@bocklin.UUCP
Newsgroups: net.lang.c
Subject: lint and enums
Message-ID: <233@bocklin.UUCP>
Date: Sat, 29-Jun-85 06:26:15 EDT
Article-I.D.: bocklin.233
Posted: Sat Jun 29 06:26:15 1985
Date-Received: Mon, 1-Jul-85 05:46:01 EDT
Distribution: net
Organization: Dept of CS, U of Arizona, Tucson
Lines: 22

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@csnet-relay
					{ihnp4,noao,mcnc,utah-cs}!arizona!whm