From c5ba6016aa714fcb13585a5690a1461bdf39e8f4 Mon Sep 17 00:00:00 2001 From: "nullable.type" Date: Sat, 27 Oct 2012 14:09:26 +0200 Subject: [PATCH] Suppress warning C4127 (conditional expression is constant) issued by Visual Studio 2012 introduced by FD_SET(..) which is using the do-while(0) trick. --- mongoose.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mongoose.c b/mongoose.c index c3edd4a8..9ed3c638 100644 --- a/mongoose.c +++ b/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