Fix unused parameter warnings and missing includes:

fix #127

* Added beast::detail::ignore_unused based on boost::ignore_unused
* Added -Wextra compilation flag when building with gcc
* Fixed all unused parameter warnings with ignore_unused
* Fixed all missing includes when building each .hpp separately
This commit is contained in:
Andrew Whatson
2017-07-20 08:12:13 -07:00
committed by Vinnie Falco
parent 0a1c24eb9f
commit ed23fd5811
17 changed files with 47 additions and 9 deletions
+2 -1
View File
@@ -795,7 +795,7 @@ private:
bool
on_request(unsigned method, std::string const& url,
int major, int minor, bool keep_alive, bool upgrade,
int major, int minor, bool /*keep_alive*/, bool /*upgrade*/,
std::true_type)
{
m_.method = detail::method_to_string(method);
@@ -826,6 +826,7 @@ private:
int major, int minor, bool keep_alive, bool upgrade,
std::true_type)
{
beast::detail::ignore_unused(keep_alive, upgrade);
m_.status = status;
m_.reason = reason;
m_.version = major * 10 + minor;