From 002b8a2c35f35438c4fbb16972d8bc577fc44461 Mon Sep 17 00:00:00 2001 From: Sven Almgren Date: Thu, 15 Mar 2012 11:56:34 +0100 Subject: [PATCH 1/2] Removed extra comma, as -pedantic complains --- src/common.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.hpp b/src/common.hpp index 2ec6d525bb..446c8b4671 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -132,7 +132,7 @@ namespace websocketpp { CONTROL_RSVC = 0xC, CONTROL_RSVD = 0xD, CONTROL_RSVE = 0xE, - CONTROL_RSVF = 0xF, + CONTROL_RSVF = 0xF }; inline bool reserved(value v) { From 1a0796d315a2b0ac8a51a9a7dbbef16759e8ae83 Mon Sep 17 00:00:00 2001 From: Sven Almgren Date: Thu, 15 Mar 2012 12:57:34 +0100 Subject: [PATCH 2/2] Removed duplicate variable in assignment (m_state = m_state = X) --- src/processors/hybi.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processors/hybi.hpp b/src/processors/hybi.hpp index ed410019de..01659469cf 100644 --- a/src/processors/hybi.hpp +++ b/src/processors/hybi.hpp @@ -397,7 +397,7 @@ public: } void reset() { - m_state = m_state = hybi_state::READ_HEADER; + m_state = hybi_state::READ_HEADER; m_header.reset(); }