From d9772d76607ad5b293e385df26cce4c87b8f6e54 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 21 Nov 2007 17:05:50 +0000 Subject: further calming compiler down Signed-off-by: Michael Krelin --- diff --git a/lib/consumer.cc b/lib/consumer.cc index d578546..7881f5f 100644 --- a/lib/consumer.cc +++ b/lib/consumer.cc @@ -377,7 +377,7 @@ namespace opkele { throw failed_assertion(OPKELE_CP_ "The location has no openid.server declaration"); } - assoc_t consumer_t::find_assoc(const string& server) { + assoc_t consumer_t::find_assoc(const string& /* server */) { throw failed_lookup(OPKELE_CP_ "no find_assoc() provided"); } diff --git a/lib/extension.cc b/lib/extension.cc index 44cf0cb..8f22562 100644 --- a/lib/extension.cc +++ b/lib/extension.cc @@ -3,13 +3,13 @@ namespace opkele { - void extension_t::checkid_hook(params_t& p,const string& identity) { + void extension_t::checkid_hook(params_t& /* p */,const string& /* identity */ ) { throw not_implemented(OPKELE_CP_ "Consumer checkid_hook not implemented"); } - void extension_t::id_res_hook(const params_t& p,const params_t& sp,const string& identity) { + void extension_t::id_res_hook(const params_t& /* p */,const params_t& /* sp */,const string& /* identity */) { throw not_implemented(OPKELE_CP_ "Consumer id_res_hook not implemented"); } - void extension_t::checkid_hook(const params_t& pin,params_t& pout) { + void extension_t::checkid_hook(const params_t& /* pin */,params_t& /* pout */) { throw not_implemented(OPKELE_CP_ "Server checkid_hook not implemented"); } } diff --git a/lib/sreg.cc b/lib/sreg.cc index 08e66b7..60dc691 100644 --- a/lib/sreg.cc +++ b/lib/sreg.cc @@ -27,7 +27,7 @@ namespace opkele { return fd.fieldname==fn; } - void sreg_t::checkid_hook(params_t& p,const string& identity) { + void sreg_t::checkid_hook(params_t& p,const string& /* identity */) { string fr, fo; for(fields_iterator f=fields_BEGIN;ffieldbit&fields_required) { @@ -44,7 +44,7 @@ namespace opkele { if(!policy_url.empty()) p["sreg.policy_url"]=policy_url; } - void sreg_t::id_res_hook(const params_t& p,const params_t& sp,const string& identity) { + void sreg_t::id_res_hook(const params_t& /* p */,const params_t& sp,const string& /* identity */) { clear(); for(fields_iterator f=fields_BEGIN;ffieldname; @@ -118,7 +118,7 @@ namespace opkele { } } - void sreg_t::setup_response(const params_t& pin,params_t& pout) { + void sreg_t::setup_response(const params_t& /* pin */,params_t& /* pout */) { fields_response = (fields_required|fields_optional)&has_fields; } } diff --git a/test/test.cc b/test/test.cc index 0010f2b..f92284c 100644 --- a/test/test.cc +++ b/test/test.cc @@ -14,13 +14,13 @@ class failed_test : public opkele::exception { class dummy_consumer_t : public opkele::consumer_t { public: - virtual opkele::assoc_t store_assoc(const string& server,const string& handle,const opkele::secret_t& secret,int expires_in) { + virtual opkele::assoc_t store_assoc(const string& /* server */,const string& /* handle */,const opkele::secret_t& /* secret */,int /* expires_in */) { throw opkele::not_implemented(OPKELE_CP_ "Not implemented"); } - virtual opkele::assoc_t retrieve_assoc(const string& server,const string& handle) { + virtual opkele::assoc_t retrieve_assoc(const string& /* server */ ,const string& /* handle */) { throw opkele::not_implemented(OPKELE_CP_ "Not implemented"); } - virtual void invalidate_assoc(const string& server,const string& handle) { + virtual void invalidate_assoc(const string& /* server */,const string& /* handle */) { throw opkele::not_implemented(OPKELE_CP_ "Not implemented"); } }; -- cgit v0.9.0.2