On Tue, 18 Aug 2009 06:53:09 -0700, "Garrett D'Amore" <[email protected]>
> Of course, if the function really was static, and not used anywhere, 
> maybe you should have just removed it, and saved a little space in the 
> code and in the binary.

I've had some trouble in the past with lint picking up spurious unused
statics. For example:

static int some_func(void);

int
main(void)
{
        do {
                ...
        } while (some_func());

        return (0);
}

int
some_func(void)
{
        ...
}

This will usually cause lint to complain about some_func not being used.

Ideas?

Steve
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to