Skip to content

How do I tell lint not to complain about my compiler headers?

Lint uses the label of "library" header to designate those headers over which a programmer has no control (such as compiler headers).  By default all #includes from a foreign directory, or enclosed within < > , are considered "library."  This can be modified through the use of the +libclass option, and further fine-tuned with the  +libdir/-libdir and +libh/-libh options.  You can then use the -wlib , -elib and -elibsym options to control just those messages being  emitted from library headers.   Compiler options files distributed with PC-lint usually  contain a -wlib(1) option which limits lint output from library headers to errors only (suppressing warning and informational messages).

Feedback and Knowledge Base