When you compile the following C++ source file in Visual Studio 2010 with warning level /W4 enabled
#include // for printf #include
The sane solution is to rewrite the condition to
if( (result = strcmp(str0, str1)) != 0 )
which will inform any C compiler that you really want to assign, and is almost certain to generate the same object code.