NO-JIRA: Stop clang complaining about new service_bus example This reverts commit b2b74c7ce2aba10aac46c931fdbfc8ea701f49bd.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/0cd2997d Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/0cd2997d Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/0cd2997d Branch: refs/heads/master Commit: 0cd2997d9c755f7802b6b5a77db1e30b7ff7122d Parents: 2cc4255 Author: Andrew Stitcher <[email protected]> Authored: Sun Jul 24 23:41:51 2016 -0400 Committer: Andrew Stitcher <[email protected]> Committed: Mon Jul 25 11:14:03 2016 -0400 ---------------------------------------------------------------------- examples/cpp/service_bus.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/0cd2997d/examples/cpp/service_bus.cpp ---------------------------------------------------------------------- diff --git a/examples/cpp/service_bus.cpp b/examples/cpp/service_bus.cpp index ae6accc..73eaadb 100644 --- a/examples/cpp/service_bus.cpp +++ b/examples/cpp/service_bus.cpp @@ -104,11 +104,12 @@ using proton::receiver_options; void do_next_sequence(); +namespace { void check_arg(const std::string &value, const std::string &name) { if (value.empty()) throw std::runtime_error("missing argument for \"" + name + "\""); } - +} /// Connect to Service Bus queue and retrieve messages in a particular session. class session_receiver : public proton::messaging_handler { @@ -177,7 +178,7 @@ class session_receiver : public proton::messaging_handler { last_read = proton::timestamp::now(); } - void on_message(proton::delivery &d, proton::message &m) OVERRIDE { + void on_message(proton::delivery &, proton::message &m) OVERRIDE { message_count++; std::cout << " received message: " << m.body() << std::endl; last_read = proton::timestamp::now(); @@ -245,7 +246,7 @@ class session_sender : public proton::messaging_handler { send_remaining_messages(s); } - void on_tracker_accept(proton::tracker &t) { + void on_tracker_accept(proton::tracker &t) OVERRIDE { accepts++; if (accepts == total) { // upload complete @@ -260,7 +261,6 @@ class session_sender : public proton::messaging_handler { /// Orchestrate the sequential actions of sending and receiving session-based messages. class sequence : public proton::messaging_handler { private: - const std::string &connection_url, &entity; proton::container *container; int sequence_no; session_sender snd; @@ -269,7 +269,7 @@ class sequence : public proton::messaging_handler { public: static sequence *the_sequence; - sequence (const std::string &c, const std::string &e) : connection_url(c), entity(e), sequence_no(0), + sequence (const std::string &c, const std::string &e) : sequence_no(0), snd(c, e), rcv_red(c, e, "red"), rcv_green(c, e, "green"), rcv_null(c, e, NULL) { the_sequence = this; } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
