This is a cppcheck warning message.
Variable 'BUFFER_INFO' hides typedef with same name
The BUFFER_INFO is defined as following.
typedef struct tagBufferInfo
{
CRITICAL_SECTION cs;
Buffer* pBuffer1;
Buffer* pBuffer2;
Buffer* pLoggingBuffer;
Buffer* pSendingBuffer;
}BUFFER_INFO, *PBUFFER_INFO;
And I wrote,
PBUFFER_INFO p = new BUFFER_INFO; // causes the warning.
What is the problem? How do I solve it?
Thanks.