lclint-interest message 69
From email@example.com Tue Apr 16 15:16:13 1996
Date: Tue, 16 Apr 1996 12:52:15 -0400
From: firstname.lastname@example.org (Debra Aubrey)
Subject: Questions about LCLint 2.0
Content-Type: text/plain; charset=us-ascii
I have a couple of questions.
Here is one code snippet:
ptr = (procid *) buffer;
if (ptr->_state != PS_DEAD)
Here is the LCLint message:
cp_childcheck.c:125,7: Field ptr->_state used before definition
What is LCLint trying to tell me? I have set up the pointer, so
I don't understand why I am getting the error from LCLint?
Along the same lines is this snippet:
procPtr = &CP_Config;
procPtr = &CP_Display;
procPtr = &CP_Ebs;
if (procPtr->procID == CP_DEAD)
And here is the LCLint message:
cp_childcheck.c:111,7: Variable procPtr used before definition
An rvalue is used that may not be initialized to a value on some execution
path. Use -usedef to suppress message.
Again, procPtr has been initialized as a pointer in the switch statement.
I don't understand why LCLint is complaining that it has not been
Thanks in advance,
University of Virginia, Computer Science