co.lnt 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. // co.lnt
  2. // Compiler Options for Generic C compiler
  3. // This file contains options to allow PC-lint to process source
  4. // files for your compiler. It is used as follows:
  5. //
  6. // lint co.lnt source-file(s)
  7. //
  8. // while processing compiler (library) header files ...
  9. -wlib(1) // sets the warning level within library headers to 1
  10. // (no warnings, just syntax errors). Comment out if you
  11. // are actually linting library headers. This
  12. // option makes obsolete options of the form -elib(axxx) where
  13. // xxx >= 400 which may be retained for historical reasons.
  14. -elib(652) // suppress message about #define of earlier declared symbols
  15. -elib(762) // suppress message about multiple identical declarations and
  16. -elib(760) // suppress message about multiple identical macro defs
  17. -elib(553) // undefined pre-processor variables are regarded as
  18. // 0 without complaint
  19. // The following functions exhibit variable return modes.
  20. // That is, they may equally-usefully be called for a value
  21. // as called just for their effects. Accordingly we inhibit
  22. // Warning 534 for these functions.
  23. // Feel free to add to or subtract from this list.
  24. -esym(534,close,creat,fclose,fprintf,fputc)
  25. -esym(534,fputs,fscanf,fseek,fwrite,lseek,memcpy,memmove,memset)
  26. -esym(534,printf,puts,scanf,sprintf,sscanf,strcat,strcpy)
  27. -esym(534,strncat,strncpy,unlink,write)