#ifdef TEST
#define INVALID_HANDLE_VALUE 0
#else
#include <windows.h>
#endif
int main()
{
HANDLE hf = 0;
if (hf==0 || hf==INVALID_HANDLE_VALUE)
{}
}
above is my test code, when I use cppcheck.exe(1.58) to check this code, cppcheck will give me a 'style' error like
this seems to be cppcheck think hf == 0 and hf == INVALID_HANDLE_VALUE are same expression.
can anyone tell me is this cppcheck's bug or why this code is style error