`
LONG APIENTRY Esl_CheckCMTClassRecord(struct CMT_Class_Record *ClassRecord, long *ret)
{
USHORT uResult;
SHORT retcode;
uResult = bt3Start(Class.CMT_fd,Class.CMT_data);
if(uResult == CLASS_RECORDLENGTH )
{
memcpy(Class.CMT_data, ClassRecord , CLASS_RECORDLENGTH);
retcode = bt3FindRel(Class.CMT_fd, Class.CMT_data, FR_EQUAL); // Read CMT record
if(retcode > 0) // read successful
{
*ret = 1;
return(0);
}
else
{
*ret = 0;
return(0);
}
}
}
I get a warning message - not all control paths return a value. Please help. Thanks
`