diff --git a/examples/broadcast_server_tls/wscmd.hpp b/examples/broadcast_server_tls/wscmd.hpp index 72703f52b9..8bc3ae0b12 100644 --- a/examples/broadcast_server_tls/wscmd.hpp +++ b/examples/broadcast_server_tls/wscmd.hpp @@ -96,4 +96,4 @@ namespace wscmd { } } // namespace wscmd -#endif // WSCMD_HPP \ No newline at end of file +#endif // WSCMD_HPP diff --git a/examples/echo_client/echo_client_handler.cpp b/examples/echo_client/echo_client_handler.cpp index 4b0055ceea..1c3b9a8f7d 100644 --- a/examples/echo_client/echo_client_handler.cpp +++ b/examples/echo_client/echo_client_handler.cpp @@ -53,4 +53,4 @@ void echo_client_handler::on_message(session_ptr s,const std::string &msg) { void echo_client_handler::on_message(session_ptr s, const std::vector &data) { s->send(data); -} \ No newline at end of file +} diff --git a/examples/echo_server/Makefile b/examples/echo_server/Makefile index b2ba630bdb..9c396693eb 100644 --- a/examples/echo_server/Makefile +++ b/examples/echo_server/Makefile @@ -2,7 +2,7 @@ BOOST_LIB_PATH ?= /usr/local/lib BOOST_INCLUDE_PATH ?= /usr/local/include CPP11 ?= -CFLAGS = -O2 $(CPP11) -I$(BOOST_INCLUDE_PATH) +CFLAGS = -Wall -O2 $(CPP11) -I$(BOOST_INCLUDE_PATH) LDFLAGS = -L$(BOOST_LIB_PATH) CXX ?= c++ diff --git a/src/base64/base64.cpp b/src/base64/base64.cpp index f2b639b71a..ed4746af88 100644 --- a/src/base64/base64.cpp +++ b/src/base64/base64.cpp @@ -120,4 +120,4 @@ std::string base64_decode(std::string const& encoded_string) { } return ret; -} \ No newline at end of file +} diff --git a/src/base64/base64.h b/src/base64/base64.h index ceb13579ce..65d5db8b22 100644 --- a/src/base64/base64.h +++ b/src/base64/base64.h @@ -1,4 +1,4 @@ #include std::string base64_encode(unsigned char const* , unsigned int len); -std::string base64_decode(std::string const& s); \ No newline at end of file +std::string base64_decode(std::string const& s); diff --git a/src/md5/md5.hpp b/src/md5/md5.hpp index 00a748f556..4e59c20c85 100644 --- a/src/md5/md5.hpp +++ b/src/md5/md5.hpp @@ -63,4 +63,4 @@ inline std::string md5_hash_hex(const std::string& input) { } // websocketpp -#endif // WEBSOCKETPP_MD5_WRAPPER_HPP \ No newline at end of file +#endif // WEBSOCKETPP_MD5_WRAPPER_HPP diff --git a/src/messages/data.hpp b/src/messages/data.hpp index c69e6e178d..c22bce1523 100644 --- a/src/messages/data.hpp +++ b/src/messages/data.hpp @@ -253,4 +253,4 @@ typedef boost::intrusive_ptr data_ptr; } // namespace message } // namespace websocketpp -#endif // WEBSOCKET_DATA_MESSAGE_HPP \ No newline at end of file +#endif // WEBSOCKET_DATA_MESSAGE_HPP diff --git a/src/network_utilities.cpp b/src/network_utilities.cpp index 792551d5e8..f5ea279a1c 100644 --- a/src/network_utilities.cpp +++ b/src/network_utilities.cpp @@ -92,4 +92,4 @@ std::string to_hex(const std::string& input) { } return output; -} \ No newline at end of file +} diff --git a/src/processors/hybi_header.cpp b/src/processors/hybi_header.cpp index c490815332..d7d2c5c4d5 100644 --- a/src/processors/hybi_header.cpp +++ b/src/processors/hybi_header.cpp @@ -287,4 +287,4 @@ void hybi_header::clear_masking_key() { // this is a no-op as clearing the mask bit also changes the get_header_len // method to not include these byte ranges. Whenever the masking bit is re- // set a new key is generated anyways. -} \ No newline at end of file +} diff --git a/src/rng/boost_rng.cpp b/src/rng/boost_rng.cpp index 4b46dc68d2..49c0a84f25 100644 --- a/src/rng/boost_rng.cpp +++ b/src/rng/boost_rng.cpp @@ -36,4 +36,4 @@ boost_rng::boost_rng() : m_gen(m_rng, int32_t boost_rng::gen() { return m_gen(); -} \ No newline at end of file +} diff --git a/src/utf8_validator/utf8_validator.hpp b/src/utf8_validator/utf8_validator.hpp index 37b95e3e06..ecaa6ef48f 100644 --- a/src/utf8_validator/utf8_validator.hpp +++ b/src/utf8_validator/utf8_validator.hpp @@ -87,4 +87,4 @@ inline bool validate(const std::string& s) { } // namespace utf8_validator -#endif // UTF8_VALIDATOR_HPP \ No newline at end of file +#endif // UTF8_VALIDATOR_HPP