2 lint questions
Boyd Nation
boyd at ingr.com
Fri Jul 28 04:34:03 AEST 1989
I have two questions bout lint:
1) How does one prevent lint from issuing a warning message about possible
pointer alignment problems given the following line of code:
x = (blivet *)malloc(sizeof(blivet));
given that everything is declared and defined correctly?
2) Is there any way to get lint to detect a closed loop of code which can
never be called? For example:
void func1()
{
if (some_condition)
func2();
some_action();
}
void func2()
{
some_other_action();
func1();
}
where there are no other calls to func1 or func2.
--
I propose that the software be modified so that anyone posting angrily to
defend a group which may have been insulted must type the word "wolf" 1000
times before posting. It would also be nice if real life worked this way.
Boyd Nation ...!uunet!ingr!boyd boyd at ingr.com Stress kills.
More information about the Comp.lang.c
mailing list