Value stored to ... during its intialization is never read

Value stored to ‘pData’ during its intialization is never read

Not sure why it complained about this

    bool handled = false;
    tData* pData = myDataGet( pMsg );

    if( ( NULL != pData ) && ( VALUE_XYZ == pData->id ) )
    {
        handled = true;
    }

    return handled;

Hi,

Welcome to the community!

I suspect this is C / C++. Would you confirm or correct that, please?

 
Thx,
Ann

A post was split to a new topic: False positive with S1854