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
Looking around, you may be able to suppress it with the following:
Then after the warning site:
Sources: http://forums.parasoft.com/index.php?showtopic=1566 and http://www-afs.secure-endpoints.com/afs/usatlas.bnl.gov/sun4x_59/app/codewizard-4.3-WS6.0u1/manuals/howsupp_.htm