home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lclint.zip / lclint-2_3h-os2-bin.zip / test / libs.expect < prev    next >
Text File  |  1997-09-03  |  8KB  |  157 lines

  1.  
  2. libs.c: (in function compare2)
  3. libs.c:14,10: Observer storage returned without qualification: "ok"
  4.    libs.c:14,10: Storage becomes observer
  5. libs.c: (in function leave)
  6. libs.c:20,9: Function exit expects arg 1 to be int gets char *: "hullo"
  7. libs.c:21,3: Unreachable code: exit(i)
  8. libs.c: (in function print)
  9. libs.c:33,3: Assignment of int to char: c = fgetc(f)
  10. libs.c:34,3: Assignment of int to char: c = getc(f)
  11. libs.c: (in function main)
  12. libs.c:46,44: Function bsearch expects arg 4 to be size_t gets [function (int,
  13.                  int) returns int] *: compare
  14. libs.c:46,10: Function bsearch called with 4 args, expects 5
  15. libs.c:48,50: Function bsearch expects arg 5 to be [function (void *, void *)
  16.     returns int] * gets [function () returns char] *:
  17.     ([function () returns char] *)compare2
  18. libs.c:48,3: Return value (type void *) ignored: bsearch(NULL, NU...
  19. libs.c:52,10: Function qsort expects arg 1 to be void * gets unsigned int: x
  20. libs.c:52,19: Function qsort expects arg 4 to be [function (void *, void *)
  21.     returns int] * gets [function () returns char] *:
  22.     ([function () returns char] *)compare2
  23. libs.c:54,11: Unrecognized identifier: SIGHUP
  24. libs.c:54,19: Function signal expects arg 2 to be [function (int) returns void]
  25.                  * gets [function (int, int) returns int] *: compare
  26.  
  27. Finished LCLint checking --- 13 code errors found, as expected
  28.  
  29. libs.c: (in function compare2)
  30. libs.c:14,10: Observer storage returned without qualification: "ok"
  31.    libs.c:14,10: Storage becomes observer
  32. libs.c: (in function leave)
  33. libs.c:20,9: Function exit expects arg 1 to be int gets char *: "hullo"
  34. libs.c:21,3: Unreachable code: exit(i)
  35. libs.c: (in function print)
  36. libs.c:33,3: Assignment of int to char: c = fgetc(f)
  37. libs.c:34,3: Assignment of int to char: c = getc(f)
  38. libs.c: (in function main)
  39. libs.c:46,44: Function bsearch expects arg 4 to be size_t gets [function (int,
  40.                  int) returns int] *: compare
  41. libs.c:46,10: Function bsearch called with 4 args, expects 5
  42. libs.c:48,50: Function bsearch expects arg 5 to be [function (void *, void *)
  43.     returns int] * gets [function () returns char] *:
  44.     ([function () returns char] *)compare2
  45. libs.c:48,3: Return value (type void *) ignored: bsearch(NULL, NU...
  46. libs.c:51,16: Function qsort expects arg 2 to be size_t gets unsigned int: x
  47. libs.c:51,19: Function qsort expects arg 3 to be size_t gets unsigned int: x
  48. libs.c:52,10: Function qsort expects arg 1 to be void * gets unsigned int: x
  49. libs.c:52,13: Function qsort expects arg 2 to be size_t gets unsigned int: x
  50. libs.c:52,16: Function qsort expects arg 3 to be size_t gets unsigned int: x
  51. libs.c:52,19: Function qsort expects arg 4 to be [function (void *, void *)
  52.     returns int] * gets [function () returns char] *:
  53.     ([function () returns char] *)compare2
  54. libs.c:54,11: Unrecognized identifier: SIGHUP
  55. libs.c:54,19: Function signal expects arg 2 to be [function (int) returns void]
  56.                  * gets [function (int, int) returns int] *: compare
  57.  
  58. Finished LCLint checking --- 17 code errors found, as expected
  59.  
  60. libs.c: (in function compare2)
  61. libs.c:14,10: Observer storage returned without qualification: "ok"
  62.    libs.c:14,10: Storage becomes observer
  63. libs.c: (in function leave)
  64. libs.c:20,9: Function exit expects arg 1 to be int gets char *: "hullo"
  65. libs.c:21,3: Unreachable code: exit(i)
  66. libs.c: (in function print)
  67. libs.c:29,3: Undocumented modification of *f possible from call to fprintf:
  68.                 fprintf(f, s)
  69. libs.c:33,7: Undocumented modification of *f possible from call to fgetc:
  70.                 fgetc(f)
  71. libs.c:33,3: Assignment of int to char: c = fgetc(f)
  72. libs.c:34,7: Undocumented modification of *f possible from call to getc:
  73.                 getc(f)
  74. libs.c:34,3: Assignment of int to char: c = getc(f)
  75. libs.c: (in function main)
  76. libs.c:46,44: Function bsearch expects arg 4 to be size_t gets [function (int,
  77.                  int) returns int] *: compare
  78. libs.c:46,10: Function bsearch called with 4 args, expects 5
  79. libs.c:48,50: Function bsearch expects arg 5 to be [function (void *, void *)
  80.     returns int] * gets [function () returns char] *:
  81.     ([function () returns char] *)compare2
  82. libs.c:48,3: Return value (type void *) ignored: bsearch(NULL, NU...
  83. libs.c:51,16: Function qsort expects arg 2 to be size_t gets unsigned int: x
  84. libs.c:51,19: Function qsort expects arg 3 to be size_t gets unsigned int: x
  85. libs.c:52,10: Function qsort expects arg 1 to be void * gets unsigned int: x
  86. libs.c:52,13: Function qsort expects arg 2 to be size_t gets unsigned int: x
  87. libs.c:52,16: Function qsort expects arg 3 to be size_t gets unsigned int: x
  88. libs.c:52,19: Function qsort expects arg 4 to be [function (void *, void *)
  89.     returns int] * gets [function () returns char] *:
  90.     ([function () returns char] *)compare2
  91. libs.c:54,11: Unrecognized identifier: SIGHUP
  92. libs.c:54,19: Function signal expects arg 2 to be [function (int) returns void]
  93.                  * gets [function (int, int) returns int] *: compare
  94.  
  95. Finished LCLint checking --- 20 code errors found, as expected
  96.  
  97. libs.c: (in function compare2)
  98. libs.c:14,10: Observer storage returned without qualification: "ok"
  99.    libs.c:14,10: Storage becomes observer
  100. libs.c: (in function leave)
  101. libs.c:20,9: Function exit expects arg 1 to be int gets char *: "hullo"
  102. libs.c:21,3: Unreachable code: exit(i)
  103. libs.c: (in function print)
  104. libs.c:29,3: Undocumented modification of *f possible from call to fprintf:
  105.                 fprintf(f, s)
  106. libs.c:29,3: Return value (type int) ignored: fprintf(f, s)
  107. libs.c:30,3: Called procedure printf may access global stdout
  108. libs.c:30,3: Undocumented modification of *stdout possible from call to printf:
  109.                 printf(s)
  110. libs.c:30,3: Return value (type int) ignored: printf(s)
  111. libs.c:31,12: Undocumented use of global stderr
  112. libs.c:31,3: Undocumented modification of *stderr possible from call to
  113.                 fprintf: fprintf(stderr, s)
  114. libs.c:31,3: Return value (type int) ignored: fprintf(stderr, s)
  115. libs.c:33,7: Called procedure fgetc may access global errno
  116. libs.c:33,7: Undocumented modification of *f possible from call to fgetc:
  117.                 fgetc(f)
  118. libs.c:33,7: Undocumented modification of errno possible from call to fgetc:
  119.                 fgetc(f)
  120. libs.c:33,3: Assignment of int to char: c = fgetc(f)
  121. libs.c:34,7: Undocumented modification of *f possible from call to getc:
  122.                 getc(f)
  123. libs.c:34,3: Assignment of int to char: c = getc(f)
  124. libs.c: (in function main)
  125. libs.c:46,44: Function bsearch expects arg 4 to be size_t gets [function (int,
  126.                  int) returns int] *: compare
  127. libs.c:46,10: Function bsearch called with 4 args, expects 5
  128. libs.c:48,50: Function bsearch expects arg 5 to be [function (void *, void *)
  129.     returns int] * gets [function () returns char] *:
  130.     ([function () returns char] *)compare2
  131. libs.c:48,3: Return value (type void *) ignored: bsearch(NULL, NU...
  132. libs.c:51,16: Function qsort expects arg 2 to be size_t gets unsigned int: x
  133. libs.c:51,19: Function qsort expects arg 3 to be size_t gets unsigned int: x
  134. libs.c:51,3: Called procedure qsort may access global errno
  135. libs.c:51,3: Undocumented modification of errno possible from call to qsort:
  136.                 qsort(NULL, x, x, ([function () returns int] *)compare)
  137. libs.c:52,10: Function qsort expects arg 1 to be void * gets unsigned int: x
  138. libs.c:52,13: Function qsort expects arg 2 to be size_t gets unsigned int: x
  139. libs.c:52,16: Function qsort expects arg 3 to be size_t gets unsigned int: x
  140. libs.c:52,19: Function qsort expects arg 4 to be [function (void *, void *)
  141.     returns int] * gets [function () returns char] *:
  142.     ([function () returns char] *)compare2
  143. libs.c:52,3: Called procedure qsort may access global errno
  144. libs.c:52,3: Undocumented modification of errno possible from call to qsort:
  145.                 qsort(x, x, x, ([function () returns char] *)compare2)
  146. libs.c:54,11: Unrecognized identifier: SIGHUP
  147. libs.c:54,19: Function signal expects arg 2 to be [function (int) returns void]
  148.                  * gets [function (int, int) returns int] *: compare
  149. libs.c:54,3: Called procedure signal may access global errno
  150. libs.c:54,3: Undocumented modification of errno possible from call to signal:
  151.                 signal(SIGHUP, compare)
  152. libs.c:55,3: Called procedure signal may access global errno
  153. libs.c:55,3: Undocumented modification of errno possible from call to signal:
  154.                 signal(SIGHUP, leave)
  155.  
  156. Finished LCLint checking --- 37 code errors found, as expected
  157.