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