From 54074267027b0abbeddc24c3046c36c6d3e978e3 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 28 Dec 2007 21:04:05 +0000 Subject: [PATCH] Work around bug in msvc 2005 code analysis. http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=99397 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7005 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/include/switch.h b/src/include/switch.h index 1863406087..cecfdaf74e 100644 --- a/src/include/switch.h +++ b/src/include/switch.h @@ -73,7 +73,15 @@ #include #ifdef _MSC_VER #include +#if _MSC_VER < 1500 +/* work around bug in msvc 2005 code analysis http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=99397 */ +#pragma warning(push) +#pragma warning(disable:6011) #include +#pragma warning(pop) +#else +#include +#endif #else #include #endif