From 58e2ece498596a87f7ad6134e44c780c3857a95e Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Wed, 8 Mar 2017 18:31:09 +0000 Subject: [PATCH] Remove suspect MSVC hacks and warning suppression --- src/lib/common/common.h | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/lib/common/common.h b/src/lib/common/common.h index 7237eeb6..ed2f7766 100644 --- a/src/lib/common/common.h +++ b/src/lib/common/common.h @@ -89,29 +89,6 @@ # endif #endif -// VC++ specific -#if (_MSC_VER >= 1200) - // work around for statement scoping bug -# define for if (false) { } else for - - // turn off bonehead warnings -# pragma warning(disable: 4786) // identifier truncated in debug info -# pragma warning(disable: 4514) // unreferenced inline function removed - - // this one's a little too aggressive -# pragma warning(disable: 4127) // conditional expression is constant - - // Code Analysis -# pragma warning(disable: 6011) - - - // emitted incorrectly under release build in some circumstances -# if defined(NDEBUG) -# pragma warning(disable: 4702) // unreachable code -# pragma warning(disable: 4701) // variable maybe used uninitialized -# endif -#endif // (_MSC_VER >= 1200) - // VC++ has built-in sized types #if defined(_MSC_VER) # include