aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2016-08-27 18:03:49 +0900
committeripknHama <ipknhama@gmail.com>2016-08-27 18:03:49 +0900
commite161da45e08a2eaaec747a784020d69f8223418d (patch)
tree0e5c326565e4ddc8fd26d05715666faaf757315f /include/common.h
parentabc36e1b3ab2edf30ea07ea2a82a395ce312f6f6 (diff)
downloadcrow-e161da45e08a2eaaec747a784020d69f8223418d.tar.gz
crow-e161da45e08a2eaaec747a784020d69f8223418d.zip
Remove warnings: manually applying #101, #104
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/common.h b/include/common.h
index fe6db93..8203378 100644
--- a/include/common.h
+++ b/include/common.h
@@ -121,7 +121,7 @@ namespace crow
}
#ifndef CROW_MSVC_WORKAROUND
-constexpr crow::HTTPMethod operator "" _method(const char* str, size_t len)
+constexpr crow::HTTPMethod operator "" _method(const char* str, size_t /*len*/)
{
return
crow::black_magic::is_equ_p(str, "GET", 3) ? crow::HTTPMethod::Get :
@@ -133,5 +133,5 @@ constexpr crow::HTTPMethod operator "" _method(const char* str, size_t len)
crow::black_magic::is_equ_p(str, "CONNECT", 7) ? crow::HTTPMethod::Connect :
crow::black_magic::is_equ_p(str, "TRACE", 5) ? crow::HTTPMethod::Trace :
throw std::runtime_error("invalid http method");
-};
+}
#endif