Skip to content

Commit

Permalink
Fix unknown pragma warning for non-MSVC compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Feb 3, 2016
1 parent fc16fcd commit d71191e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Release/libs/websocketpp/websocketpp/connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,12 @@ typedef lib::function<void(lib::error_code const & ec)> write_frame_handler;
* @todo Move this to configs to allow compile/runtime disabling or enabling
* of protocol versions
*/
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable : 4592)
static std::vector<int> const versions_supported = {0,7,8,13};
#pragma warning(pop)
#endif
#else
/// Helper array to get around lack of initializer lists pre C++11
static int const helper[] = {0,7,8,13};
Expand Down

0 comments on commit d71191e

Please sign in to comment.