A warning generated at warning level 4 in visual-c++ compilers.
Microsoft Visual C++ compiler warning conditional expression is constant. Steps to produce:
// C4127.cpp
// compile with: /W4
#include <stdio.h>
int main() {
if (1 == 1) {} // C4127
while (1) { break; } // C4127
// OK
for ( ; ; ) {
printf("test\n");
break;
}
}