Skip to content

I want to suppress an error, such as 715, for C files, but not for C++ files.

Use the -header option, as in:

     -header(x.h) 

and then within the header file (x.h in this example): 

     #ifdef __cplusplus
         //lint +e715
     #else 
         //lint -e715
     #endif

Feedback and Knowledge Base