-2

how to skip all the lint errors for a C file? Is there any way to skip all the lint errors for specific file with any options?

I am able to skip individual error with below option:

/*lint -save -e40 */
*lint -restore */
cafce25
  • 15,907
  • 4
  • 25
  • 31
Hjey
  • 1
  • 7
    Don't call lint on that file? – Almo Jul 28 '16 at 20:09
  • Most of the bad questions here come from people who turn off lint/warnings and then wonder why their code doesn't work. There are very few cases where a warning isn't pointing out something you should fix instead of hide. – evaitl Jul 29 '16 at 04:20

1 Answers1

0

Long time passed since I last used Lint.
I hope I am not mistaking...

According to: http://www.gimpel.com/Discussion.cfm?ThreadID=3410

The syntax is:

/*lint -save -e* */
...
/*lint -restore */
Rotem
  • 30,366
  • 4
  • 32
  • 65