10 int main(int argc, char *argv[]) /*-------------- main ----*/
14 struct FrameH *iFrame;
15 struct FrameH *oFrame;
16 struct FrAdcData *dmroAdcData;
17 struct FrVect *dmroVector;
19 double *times; /* times at which samples
21 char *projectName = "";
22 unsigned int runNumber = 0;
23 unsigned int frameNumber = 0;
24 unsigned int initialTime = 0; /* start time of 1st frame */
25 unsigned int finalTime = 0; /* time of end of data
27 unsigned int startTime = 0; /* start time of current
29 unsigned int startTimeResidual = 0; /* nanoseconds */
32 int i; /* loop counter */
33 size_t lastSize; /* size of latest actualData, in units of
36 /*--- increase the Debug level to see possible errors ---*/
39 sscanf(argv[2],"%ld",&debugLevel);
44 FrLibSetLvl(debugLevel);
48 And here's the error message:
51 LCLint 2.4b --- 18 Apr 98
53 frameread.c: (in function main)
54 frameread.c:50:24: Variable debugLevel used before definition
55 An rvalue is used that may not be initialized to a value on some execution
56 path. (-usedef will suppress message)
57 frameread.c:50:35: *** Internal Bug at exprNode.c:3843: exprNode_preOp:
58 unhandled op: . [errno: 25]
59 *** Last code point: exprNode.c:8474
60 *** Previous code point: exprNode.c:8474
61 system error: : Not a typewriter
62 *** Please report bug to lclint-bug@sds.lcs.mit.edu ***
63 (attempting to continue, results may be incorrect)
64 frameread.c:50:23: Format argument 1 to sscanf (%ld) expects long int * gets
66 Type of parameter is not consistent with corresponding code in format string.
67 (-formattype will suppress message)
68 frameread.c:50:20: Corresponding format code
69 frameread.c:50:2: Return value (type int) ignored: sscanf(argv[2], ...
70 Result returned by function call is not used. If this is intended, can cast
71 result to (void) to eliminate message. (-retvalint will suppress message)
72 frameread.c:53:17: *** Internal Bug at exprNode.c:4765: exprNode.c:4765:
73 llassert failed: FALSE: Unexpected default case reached! [errno: 25]
74 *** Last code point: exprNode.c:8474
75 *** Previous code point: exprNode.c:3216
76 system error: : Not a typewriter
77 *** Please report bug to lclint-bug@sds.lcs.mit.edu ***
78 (attempting to continue, results may be incorrect)