correct some documentation & fix warnings

This commit is contained in:
Peter Thorson
2015-01-20 07:00:43 -05:00
parent 4d1693c96c
commit 17544d4d62
2 changed files with 10 additions and 4 deletions
@@ -55,7 +55,7 @@ class disabled {
public:
/// Negotiate extension
/**
* The disabled extension always fails the negotiation with a disabled
* The disabled extension always fails the negotiation with a disabled
* error.
*
* @param offer Attribute from client's offer
@@ -66,7 +66,13 @@ public:
}
/// Initialize state
lib::error_code init(bool is_server) {
/**
* For the disabled extension state initialization is a no-op.
*
* @param is_server True to initialize as a server, false for a client.
* @return A code representing the error that occurred, if any
*/
lib::error_code init(bool) {
return lib::error_code();
}
@@ -254,7 +254,7 @@ public:
*
* @todo memory level, strategy, etc are hardcoded
*
* @param is_server Whether or not to initialize as a server or client.
* @param is_server True to initialize as a server, false for a client.
* @return A code representing the error that occurred, if any
*/
lib::error_code init(bool is_server) {
@@ -450,7 +450,7 @@ public:
* @param response The server response attribute list to validate
* @return Validation error or 0 on success
*/
lib::error_code validate_offer(http::attribute_list const & response) {
lib::error_code validate_offer(http::attribute_list const &) {
return lib::error_code();
}