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.2.expect
< prev
next >
Wrap
Text File
|
1997-09-03
|
4KB
|
100 lines
boolops.c: (in function main)
boolops.c:12,3: Assignment of int to Kzam: b = 12
Finished LCLint checking --- 1 code error found, as expected
mbool.h:1,16: Type implemented as macro: bool
Finished LCLint checking --- 1 code error found, as expected
boolenum.c: (in function main)
boolenum.c:11,8: Use of == with BOOLEAN variables (risks inconsistency because
of multiple true values): a == TRUE
Finished LCLint checking --- 1 code error found, as expected
break.c: (in function f)
break.c:9,4: Dereference of possibly null pointer x: *x
break.c:1,24: Storage x may become null
Finished LCLint checking --- 1 code error found, as expected
bstring.c:4,14: Initial value of s4[0] is type char *, expects char: "hullo"
bstring.c:4,23: Initial value of s4[1] is type char *, expects char: "g'bye"
Finished LCLint checking --- 2 code errors found, as expected
decl.c:3,21: Structure struct tm declared with fields { int x; }, specified
with fields { int tm_sec; int tm_min; int tm_hour;, ... }
load file ansi.lcd: Specification of struct tm
decl.c:3,17: Field tm_sec in specified corresponds to x in declaration
load file ansi.lcd: Specification of tm_sec
Finished LCLint checking --- 1 code error found, as expected
enumbool.c:1,34: Member of boolean enumerated type definition does not match
name set to represent TRUE or FALSE: false
enumbool.c:1,34: Member of boolean enumerated type definition does not match
name set to represent TRUE or FALSE: true
Finished LCLint checking --- 2 code errors found, as expected
Finished LCLint checking --- no code errors found
Finished LCLint checking --- no code errors found
extension.c:3,1: Parse Error. (For help on parse errors, see lclint -help
parseerrors.)
*** Cannot continue.
Finished LCLint checking --- no code errors found
nestext.c: (in function f)
nestext.c:3,26: Declaration using extern inside function scope: int test()
Finished LCLint checking --- 1 code error found, as expected
Finished LCLint checking --- no code errors found
sizeofarray.c:1,12: Function parameter x declared as manifest array (size
constant is meaningless)
sizeofarray.c: (in function f)
sizeofarray.c:5,13: Parameter to sizeof is an array-type function parameter:
sizeof((x))
sizeofarray.c:10,16: Return value type size_t does not match declared type int:
sizeof((a))
Finished LCLint checking --- 3 code errors found, as expected
Load library obsolete is in obsolete LCLint library format. Attempting to
continue anyway, but results may be incorrect. Rebuild the library with this
version of lclint.
load file obsolete: Library file appears to be corrupted. Error:
usymIdSet_undump: loop: *0 (Datatype)
*** Cannot continue.
Load library oldversion is in obsolete LCLint library format (version 2.1 ---
Tue Aug 8 4:45:29 EDT 1996). Attempting to continue anyway, but results may be
incorrect. Rebuild the library with this version of lclint.
libraries.c:1: Include file <sys/types> matches the name of a POSIX library,
but the POSIX library is not being used. Consider using +posixlib or
+posixstrictlib to select the POSIX library, or -warnposix to suppress this
message.
Finished LCLint checking --- 1 code error found, as expected
Finished LCLint checking --- no code errors found
Finished LCLint checking --- no code errors found
rex.c: (in function main)
rex.c:19,12: Only storage re.parent (type struct rx_hash *) derived from
variable declared in this scope is not released (memory leak)
Finished LCLint checking --- 1 code error found, as expected
struct.c:13,6: Function main declared to return void, should return int
Finished LCLint checking --- 1 code error found, as expected