I would like to know how to suppress this defect found by parasoft
BD-PB-CC:Condition "result != 0" always evaluates to false
/home/redbend/dev/vdm-10.2/sdk/source/engine/core/src/vdm_core_api.c:82
The problem is with this code:
//Initialize MMI sub-component
result = VDM_MMI_init();
if (result != VDM_ERR_OK)
goto err;
that calls this function:
VDM_Error VDM_MMI_init(void)
{
return VDM_ERR_OK;
}
The structure has to be maintained as VDM_MMI_init() may return an error in the future.
I am looking for any kind of macro or comment can be embedded in the code that will tell C++test to ignore this problem
You can simply type:
and violation will be suppressed