소스 검색

Suppress warning C4127 (conditional expression is constant) issued by Visual Studio 2012 introduced by FD_SET(..) which is using the do-while(0) trick.

nullable.type 12 년 전
부모
커밋
c5ba6016aa
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      mongoose.c

+ 1 - 0
mongoose.c

@@ -30,6 +30,7 @@
 #endif
 
 #if defined (_MSC_VER)
+#pragma warning (disable : 4127)    // conditional expression is constant: introduced by FD_SET(..)
 #pragma warning (disable : 4204)    // non-constant aggregate initializer: issued due to missing C99 support
 #endif