options.lnt 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // Please note -- this is a representative set of error suppression
  2. // options. Please adjust to suit your own policies
  3. // See manual (chapter LIVING WITH LINT)
  4. // for further details.
  5. //===========================================================================
  6. // Library control
  7. //
  8. -wlib(0) // Inhibit all library messages except syntactic
  9. // errors.
  10. +libclass(angle,ansi) // Treat all headers specified with angle brackets
  11. // and standard ANSI headers as library files
  12. +libh(nucleus.h,*x_os.h) // Ignore nucleus.h and x_os.h
  13. //===========================================================================
  14. // General attributes
  15. //
  16. -epn // Inhibit messages that pointer types differ
  17. // nominally.
  18. +fll // Enable type 'long long'
  19. +fdi // Search #include files in the directory of
  20. // source file, rather than in current directory.
  21. +fpn // All pointer parameters are assumed to be
  22. // possibly NULL.
  23. +fem // Early modifiers (__packed, etc.)
  24. -d__arm // Define __arm
  25. -d__FUNCTION__="function" // Non-standard preprocessor macro
  26. //===========================================================================
  27. // General message inhibitions
  28. //
  29. -e537 // Repeated include file
  30. -e730 // Boolean argument to function
  31. -e788 // enum constant not used within defaulted switch
  32. //===========================================================================
  33. // Specific function inhibitions
  34. //
  35. // Ignoring return value of function
  36. -esym(534, Printf, SPrintf)
  37. -esym(534, x_memcpy, x_memcmp, x_memmove, x_memset)
  38. // Function takes printf-like format
  39. -printf(1, Printf)
  40. -printf(2, SPrintf)
  41. // ASSERT specific
  42. +dASSERT=__assert // lock in the define of ASSERT to be the builtin function
  43. -esym(1055,__assert) // the built-in is undeclared
  44. -esym(526,__assert) // and not defined either.
  45. -esym(516,__assert) // arguments may vary.
  46. -esym(534,__assert) // the return value is ignored
  47. -esym(628,__assert) // and no argument information given
  48. -esym(746,__assert) // and no formal prototype provided
  49. -esym(718,__assert) // Symbol undeclared
  50. // otherwise __assert() is an 'ideal' assert function.
  51. //===========================================================================
  52. // Special keyword ignorance
  53. // Add reserved word: __irq
  54. +rw(__irq, __packed)
  55. -rw(__align)
  56. // Ignore __global_reg(x), used in nucleus.h
  57. -rw_asgn(__global_reg, _to_eol)
  58. // Ignore __align(x), used in global variable declaration alignment
  59. -rw_asgn(__align, _to_brackets)
  60. // Ignore embedded inline assembly functions
  61. -rw_asgn(__asm, _to_brackets)