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 / charlit.expect < prev    next >
Text File  |  1997-09-03  |  1KB  |  30 lines

  1.  
  2. charlit.c: (in function f)
  3. charlit.c:3,11: Variable x initialized to type char, expects int: 'a'
  4.   A character constant is used as an int. Use +charintliteral to allow
  5.   character constants to be used as ints.  (This is safe since the actual type
  6.   of a char constant is int.)
  7. charlit.c:6,7: Incompatible types for + (int, char): x + 'c'
  8. charlit.c:8,10: Return value type char does not match declared type int: 'a'
  9. charlit.c:12,14: Variable u initialized to type int, expects unsigned int: -3
  10.   To ignore signs in type comparisons use +ignoresigns
  11.  
  12. Finished LCLint checking --- 4 code errors found, as expected
  13.  
  14. charlit.c: (in function f)
  15. charlit.c:3,11: Variable x initialized to type char, expects int: 'a'
  16.   A character constant is used as an int. Use +charintliteral to allow
  17.   character constants to be used as ints.  (This is safe since the actual type
  18.   of a char constant is int.)
  19. charlit.c:4,14: Variable z initialized to type int, expects double: 3
  20.   An int literal is used as a float or double. Use +numliteral to allow int
  21.   literals to be used as floats or doubles.
  22. charlit.c:6,7: Incompatible types for + (int, char): x + 'c'
  23. charlit.c:8,10: Return value type char does not match declared type int: 'a'
  24. charlit.c:12,14: Variable u initialized to type int, expects unsigned int: -3
  25.   To ignore signs in type comparisons use +ignoresigns
  26.  
  27. Finished LCLint checking --- 5 code errors found, as expected
  28.  
  29. Finished LCLint checking --- no code errors found
  30.