Thread View: comp.sys.sgi.bugs
3 messages
3 total messages
Started by Valter Cavecchia
Thu, 17 Dec 1992 10:22
lint doesn't recognize '#' ansi operator
Author: Valter Cavecchia
Date: Thu, 17 Dec 1992 10:22
Date: Thu, 17 Dec 1992 10:22
7 lines
625 bytes
625 bytes
This is not a bug, lint doesn't recognize the # ansi "tokenizer" because it actually uses "cpp" and not "acpp" (lint ignores -ansi keywords). This is really annoying... Is there any fix to this? Thanks a lot in advance, valter
Re: lint doesn't recognize '#' ansi operator
Author: David S. Goldberg
Date: Thu, 17 Dec 1992 13:54
Date: Thu, 17 Dec 1992 13:54
20 lines
1551 bytes
1551 bytes
>>>>> In article <1992Dec17.102241.12183@itnsg1.cineca.it>,
>>>>> root@itnsg1.cineca.it (Valter Cavecchia) writes:
Valter> This is not a bug, lint doesn't recognize the # ansi
Valter> "tokenizer" because it actually uses "cpp" and not "acpp"
Valter> (lint ignores -ansi keywords). This is really annoying... Is
Valter> there any fix to this?
I don't have a true fix, but I've been annoyed by this too. My
solution (I call it a kludge) has been to preprocess the file with
acpp, redirecting to another file, and then running lint on that
second file. It's not as nice as having lint use acpp directly
because line numbers don't always match up, but it does help somewhat.
--
Dave Goldberg UNIX Systems Programmer/Administrator
Post: The Mitre Corporation MS B020 202 Burlington Rd. Bedford, MA 01730
Phone: 617-271-2460
Domain: dsg@mbunix.mitre.org UUCP: {your neighborhood}!linus!mbunix!dsg
Re: lint doesn't recognize '#' ansi operator
Author: Kevin Dalley
Date: Fri, 18 Dec 1992 03:06
Date: Fri, 18 Dec 1992 03:06
28 lines
1681 bytes
1681 bytes
In article <DSG.92Dec17085443@blackbird.mitre.org> dsg@blackbird.mitre.org (David S. Goldberg) writes: > Nntp-Posting-Host: blackbird.mitre.org >>>>>> In article <1992Dec17.102241.12183@itnsg1.cineca.it>, >>>>>> root@itnsg1.cineca.it (Valter Cavecchia) writes: >Valter> This is not a bug, lint doesn't recognize the # ansi >Valter> "tokenizer" because it actually uses "cpp" and not "acpp" >Valter> (lint ignores -ansi keywords). This is really annoying... Is >Valter> there any fix to this? > I don't have a true fix, but I've been annoyed by this too. My > solution (I call it a kludge) has been to preprocess the file with > acpp, redirecting to another file, and then running lint on that > second file. It's not as nice as having lint use acpp directly > because line numbers don't always match up, but it does help somewhat. Another solution is to "gcc -Wall". Through in a few other warnings if you so desire. gcc gives substantially better warning messages than either SGI's "cc -fullwarn" or lint. -- Kevin Dalley Toshiba America MRI, Inc. kevin@tamri.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads