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 / tests2.2a.expect < prev    next >
Text File  |  1997-09-03  |  6KB  |  134 lines

  1.  
  2. erik.c: (in function main)
  3. erik.c:6,4: Return value (type int) ignored: scanf("%lf %f", ...
  4.  
  5. Finished LCLint checking --- 1 code error found, as expected
  6.  
  7. boolcomp.c: (in function f)
  8. boolcomp.c:3,7: Use of == with bool variables (risks inconsistency because of
  9.                    multiple true values): a == b
  10. boolcomp.c:7,13: Use of == with bool variables (risks inconsistency because of
  11.                     multiple true values): a == b
  12. boolcomp.c:9,6: Use of != with bool variables (risks inconsistency because of
  13.                    multiple true values): a != b
  14. boolcomp.c:14,6: Use of == with bool variables (risks inconsistency because of
  15.                     multiple true values): b == TRUE
  16. boolcomp.c:18,2: Path with no return in function declared to return int
  17.  
  18. Finished LCLint checking --- 5 code errors found, as expected
  19.  
  20. Finished LCLint checking --- no code errors found
  21.  
  22. addassign.c: (in function hash)
  23. addassign.c:7,7: Incompatible types for += (int, char): h += *name++
  24.  
  25. Finished LCLint checking --- 1 code error found, as expected
  26.  
  27. toralf.c: (in function func1)
  28. toralf.c:14,3: Incompatible types for += (char *, char): s += 'c'
  29. toralf.c:15,3: Variable i1 used before definition
  30. toralf.c:15,9: Variable f used before definition
  31. toralf.c: (in function func2)
  32. toralf.c:23,8: Variable i2 used before definition
  33. toralf.c: (in function main)
  34. toralf.c:28,10: Null storage passed as non-null param: func1 (NULL)
  35.  
  36. Finished LCLint checking --- 5 code errors found, as expected
  37.  
  38. Finished LCLint checking --- no code errors found
  39.  
  40. Finished LCLint checking --- no code errors found
  41.  
  42. florian.c: (in function foo)
  43. florian.c:2,9: Suspect object listed in modifies of foo not modified: bar
  44.    florian.c:1,5: Declaration of foo
  45. florian.c:1,9: Parameter bar not used
  46. florian.c:1,5: Function foo exported but not declared in header file
  47.    florian.c:2,9: Definition of foo
  48.  
  49. Finished LCLint checking --- 3 code errors found, as expected
  50.  
  51. arrayparam.c:1,12: Function parameter x is incomplete type (inner array must
  52.                       have bounds): int [2] []
  53. arrayparam.c:11,12: Function parameter x is incomplete type (inner array must
  54.                        have bounds): int [] []
  55. arrayparam.c:16,12: Function parameter x is incomplete type (inner array must
  56.                        have bounds): int [] [] [2]
  57. arrayparam.c:21,12: Function parameter x is incomplete type (inner array must
  58.                        have bounds): int [2] [] [2]
  59. arrayparam.c:26,12: Function parameter x declared as manifest array (size
  60.                        constant is meaningless)
  61.  
  62. Finished LCLint checking --- 5 code errors found, as expected
  63.  
  64. Finished LCLint checking --- no code errors found
  65.  
  66. Finished LCLint checking --- no code errors found
  67.  
  68. obviousloop.c: (in function f)
  69. obviousloop.c:14,3: Unreachable code: x = 12
  70. obviousloop.c: (in function f1)
  71. obviousloop.c:36,2: Path with no return in function declared to return int
  72. obviousloop.c: (in function f1b)
  73. obviousloop.c:59,3: Unreachable code: x = 12
  74. obviousloop.c: (in function f2)
  75. obviousloop.c:75,3: Unreachable code: x = 12
  76.  
  77. Finished LCLint checking --- 4 code errors found, as expected
  78.  
  79. bitops.c: (in function f)
  80. bitops.c:3,11: Left operand of & is not unsigned value (int): i1 & i2
  81. bitops.c:3,11: Variable x initialized to type unsigned int, expects int:
  82.                   i1 & i2
  83. bitops.c:4,21: Right operand of & is not unsigned value (int): u1 & i2
  84. bitops.c:5,13: Left operand of & is not unsigned value (int): i1 & i2
  85. bitops.c:5,13: Variable s initialized to type unsigned int, expects short int:
  86.                   i1 & i2
  87. bitops.c:6,14: Variable s2 initialized to type int, expects short int: i1 + i2
  88. bitops.c:9,7: Left operand of << is not unsigned value (int): i1 << 3
  89. bitops.c:14,7: Left operand of ^ is not unsigned value (int): i1 ^ u1
  90. bitops.c:15,12: Right operand of ^ is not unsigned value (int): u1 ^ i1
  91. bitops.c:5,9: Variable s declared but not used
  92. bitops.c:6,9: Variable s2 declared but not used
  93.  
  94. Finished LCLint checking --- 11 code errors found, as expected
  95.  
  96. bitops.c: (in function f)
  97. bitops.c:5,13: Variable s initialized to type int, expects short int: i1 & i2
  98. bitops.c:6,14: Variable s2 initialized to type int, expects short int: i1 + i2
  99. bitops.c:9,7: Left operand of << is not unsigned value (int): i1 << 3
  100. bitops.c:14,3: Assignment of int to unsigned int: u = i1 ^ u1
  101. bitops.c:5,9: Variable s declared but not used
  102. bitops.c:6,9: Variable s2 declared but not used
  103.  
  104. Finished LCLint checking --- 6 code errors found, as expected
  105.  
  106. isalpha.c: (in function f)
  107. isalpha.c:3,19: Function isalpha expects arg 1 to be unsigned char gets char: c
  108.  
  109. Finished LCLint checking --- 1 code error found, as expected
  110.  
  111. Finished LCLint checking --- no code errors found
  112.  
  113. Finished LCLint checking --- no code errors found
  114.  
  115. popik.c:7,3: Variable has unknown (implicitly int) type: dummy[0]
  116. popik.c:7,3: Variable has unknown (implicitly int) type: dummy[1]
  117. popik.c:7,3: Variable has unknown (implicitly int) type: dummy[2]
  118. popik.c:7,3: Variable has unknown (implicitly int) type: dummy[3]
  119. popik.c:24,3: Variable has unknown (implicitly int) type: dummy3[0]
  120. popik.c:24,3: Variable has unknown (implicitly int) type: dummy3[1]
  121. popik.c:24,3: Variable has unknown (implicitly int) type: dummy3[2]
  122. popik.c:24,3: Variable has unknown (implicitly int) type: dummy3[3]
  123. popik.c:1,14: File static variable dummy declared but not used
  124. popik.c:10,24: File static variable dummy2 declared but not used
  125. popik.c:18,14: File static variable dummy3 declared but not used
  126.  
  127. Finished LCLint checking --- 11 code errors found, as expected
  128.  
  129. popik.c:1,14: File static variable dummy declared but not used
  130. popik.c:10,24: File static variable dummy2 declared but not used
  131. popik.c:18,14: File static variable dummy3 declared but not used
  132.  
  133. Finished LCLint checking --- 3 code errors found, as expected
  134.