Skip to content

Commit d71191e

Browse files
committed
Fix unknown pragma warning for non-MSVC compilers
1 parent fc16fcd commit d71191e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Release/libs/websocketpp/websocketpp/connection.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,12 @@ typedef lib::function<void(lib::error_code const & ec)> write_frame_handler;
161161
* @todo Move this to configs to allow compile/runtime disabling or enabling
162162
* of protocol versions
163163
*/
164+
#if defined(_MSC_VER)
164165
#pragma warning(push)
165166
#pragma warning(disable : 4592)
166167
static std::vector<int> const versions_supported = {0,7,8,13};
167168
#pragma warning(pop)
169+
#endif
168170
#else
169171
/// Helper array to get around lack of initializer lists pre C++11
170172
static int const helper[] = {0,7,8,13};

0 commit comments

Comments
 (0)