Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!ingr!boyd From: boyd@ingr.com (Boyd Nation) Newsgroups: comp.lang.c Subject: 2 lint questions Message-ID: <5967@ingr.com> Date: 27 Jul 89 18:34:03 GMT Organization: Intergraph Corp. Huntsville, Al Lines: 34 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@ingr.com Stress kills.