From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b3320d41746c900,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-04-28 10:53:04 PST Path: gmd.de!ira.uka.de!howland.reston.ans.net!torn!nott!bnrgate!bnr.co.uk!pipex!warwick!zaphod.crihan.fr!univ-lyon1.fr!scsing.switch.ch!sicsun!disuns2.epfl.ch!disuns2.epfl.ch!warkent From: warkent@ltisun14.epfl.ch (Ken Warkentyne) Newsgroups: comp.sys.dec Subject: lint -Q Message-ID: Date: 28 Apr 93 16:30:57 GMT Organization: Ecole Polytechnique Federale de Lausanne NNTP-Posting-Host: ltisun14.epfl.ch In "Porting Your ULTRIX Application to a DEC/OSF/1 System", it is recommended to use "lint -Q" to find pointer to int assignments. However, "lint -Q" does not appear to do so. Here is a small sample program: #include main() { int i; int *aptr, *bptr; aptr = &i; i = (int) aptr; bptr = (int *) i; printf("First addr: %lx\n",aptr); printf("Second addr: %lx\n",bptr); } Running lint -Q on this program produces no error message concerning the incorrect type cast. Running the program produces the expected incorrect result: First addr: 11ffffd08 Second addr: 1ffffd08 Needless to say, "lint -Q" has not been terribly helpful in my porting task. I ran this test on the axposf.pa.dec.com machine at 15:30 MET, 28 April -- Ken Warkentyne - warkent@ltisun.epfl.ch Laboratoire de Teleinformatique, EPFL, Suisse.