Arrays containing pointers to void functions
Rick Wessman
rrw at ccice2.UUCP
Wed Oct 17 23:56:32 AEST 1984
I am in the process of linting 9 (!) operating systems, and I keep
on running into the following:
Given the following declarations:
void func1();
void func2();
void func3();
void func4();
void (*functions[])()=
{
func1,
func2,
func3,
func4
}
Lint (4.2BSD) gives me messages saying that the types are incompatible
and that the initialization is illegal.
Since the type of the functions and the array are identical, there
is no error. Is there a fix that I can make to lint to get it to shut
up? I could live with it, but it would be nicer to have it go away.
Any help would be appreciated.
Thanks,
Rick
More information about the Comp.unix
mailing list