I am using PC lint for my C project. And I want to exclude all the messages related to include files. I have tried to add +libh(*.h)
or +libh(*core_cm4.h)
but I am still getting all the errors from include files. The only time I am not getting anything if I add -w0
but I only want the info, warnings, and errors for all the source files.
Asked
Active
Viewed 955 times
1

deanavenger
- 582
- 1
- 7
- 24
-
Can you give examples of the errors you are getting? – Nubcake Mar 20 '20 at 22:14
1 Answers
0
+libh
specifies header files that are to be treated as library headers - but you still need to tell PC-Lint to ignore all errors in libraries.
That can be done with -wlib=4 -wlib=0
.

Steve Melnikoff
- 2,620
- 1
- 22
- 24