STD.LNT 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. // Watcom C, C++ (32 bit), -si4 -sp4,
  2. // Standard lint options
  3. // Compiler Options for Watcom C, C++ 32 bit
  4. -cwc
  5. // This file contains options to allow PC-lint to process source
  6. // files for your compiler. It is used as follows:
  7. //
  8. // lint co-wc32.lnt source-file(s)
  9. //
  10. -d_M_IX86=200 // assume Intel 80286 architecture -- modify to suit
  11. -d__declspec()= // ignore this construct
  12. // additional reserve words needed
  13. +rw(_loadds,_export)
  14. +rw(__interrupt,__near,__far,__huge,__fortran,__pascal,__cdecl)
  15. +rw(__export,__loadds,__saveregs,__asm,__fastcall,__stdcall)
  16. +rw(_export)
  17. +fcd // makes cdecl significant -- used for proto generation
  18. +fcu // chars are by default unsigned
  19. +fsu // so are strings
  20. -d__386__ // pre-defined macro for 386 version, not set by -cwc
  21. -d__FLAT__ // not set by -cwc
  22. -si4 // sizeof(int) is 4
  23. -spN4 // sizeof(near pointer) is 4
  24. -spF6 // sizeof( far pointer) is 6
  25. -sld10 // sizeof(long double) is 10.
  26. -function(exit,_exit) // _exit() is like exit()
  27. -emacro(734,putc) // don't complain about items being too large.
  28. -emacro(506,putc) // don't complain about constant Boolean
  29. -emacro(???,va_arg) // the va_arg() macro can yield 415, 416, 661, 662
  30. // 796 and 797 (out-of-bounds errors).
  31. // While processing compiler (library) header files ...
  32. -elib(46) // an unsigned short bit field is used as __FILLER__
  33. -elib(522) // function return value ignored
  34. -elib(537) // repeated include file (ios.h)
  35. -elib(641) // converting enum to int
  36. -elib(652) // suppress message about #define of earlier declared symbols
  37. -elib(655) // ORing enum's
  38. -elib(726) // extraneous comma in enumeration
  39. -elib(760) // suppress message about multiple identical macro defs
  40. -elib(762) // suppress message about multiple identical declarations and
  41. -elib(806) // small bit field is signed
  42. -elib(1053) // prototypes cannot be distinguished
  43. -elib(1511) // member (rdbuf) hides nonvirtual member
  44. -elib(1704) // private copy constructor
  45. -elib(1712) // default constructor missing
  46. -elib(1717) // empty prototypes
  47. -elib(1720) // strange argument to assignment operator
  48. -elib(1721) // unusual operator =() declaration
  49. -elib(1722) // assignment operator does not return ref to class
  50. -elib(1724) // strange argument to copy constructor
  51. -esym(1702,operator<<,operator>>)
  52. // The following functions exhibit variable return modes.
  53. // That is, they may equally-usefully be called for a value
  54. // as called just for their effects. Accordingly we inhibit
  55. // Warning 534 for these functions.
  56. // Feel free to add to or subtract from this list.
  57. -esym(534,close,creat,fclose,fflush,fprintf,fputc)
  58. -esym(534,fputs,fscanf,fseek,fwrite,lseek,memcpy,memmove,memset)
  59. -esym(534,printf,puts,scanf,sprintf,sscanf,strcat,strcpy)
  60. -esym(534,strncat,strncpy,unlink,write)
  61. //------------------------------------------------------------------
  62. // Please note -- this is a representative set of error suppression
  63. // options. Please adjust to suit your own policies
  64. // See PC-lint for C/C++ manual (chapter LIVING WITH LINT)
  65. // for further details.
  66. -e502 -e713 -e737 -eau // don't report on signed/unsigned mismatches
  67. -e734 // allow sub-integer loss of information
  68. -e701 -e703 // shifting int left is OK
  69. -e537 // don't care about repeated include file
  70. -e641 // converting enum to int is ok
  71. -e1042 // operator ++/-- don't need class parameters
  72. -e963 -e763 // redundant declarations are ok
  73. -e1712 // no default constructor defined is ok
  74. -e1704 // private constructors are ok
  75. -e534 // ignoring return value is ok
  76. -e732 // going from signed to unsigned parameter is ok
  77. -e1411 // functions hiding base functions is ok
  78. -e788 // switch with default doesn't need all values specified
  79. -e655 -e656 // compatable enum bit and arithmetic operations are ok
  80. -e1542 // members possibly not initialized isn't a valid warning
  81. -e522 // calling 'new' without assignment isn't always an error
  82. -e1401 // uninitialized by constructor warning disabled.
  83. // 32 bit integer and pointer size is four bytes.
  84. -si4 -sp4
  85. // Include directories
  86. -ic:\projects\c&czero\code\watcom\h;..\vq\include;..\gcl510\h