Skip to content

How do I suppress a message for a specific symbol? function? macro?

The -e# option will suppress all instances of error message #.  Additionally, PC-lint Plus provides a range of suppression options including:

!e#                                          suppresses message # for the current line

-estring(#, string)            suppresses message # when parameterized by string

-esym(#,sym )                    suppresses message # for symbol sym

-efunc(#,funcname )      suppresses message # emanating from within function funcname

-emacro(#,macroname)     suppresses message # within macro macroname

-e(#)                                      suppresses message # for the next expression

-e{#}                                      suppresses message # for the next statement

-efunc(#, func)                  suppresses message # within function func

See Section 4.3.1 of the PC-lint Plus Reference Manual for a complete discussion of message suppression options.

Feedback and Knowledge Base