You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2017/09/12 22:33:14 UTC

qpid-proton git commit: PROTON-1512: Fix warning for declaration in middle of switch

Repository: qpid-proton
Updated Branches:
  refs/heads/master 1d36257c9 -> a08929eba


PROTON-1512: Fix warning for declaration in middle of switch


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/a08929eb
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/a08929eb
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/a08929eb

Branch: refs/heads/master
Commit: a08929eba61dd0270e01dc99ab85836804cfaf2b
Parents: 1d36257
Author: Andrew Stitcher <as...@apache.org>
Authored: Tue Sep 12 18:32:25 2017 -0400
Committer: Andrew Stitcher <as...@apache.org>
Committed: Tue Sep 12 18:32:25 2017 -0400

----------------------------------------------------------------------
 proton-c/src/tests/connection_driver.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/a08929eb/proton-c/src/tests/connection_driver.c
----------------------------------------------------------------------
diff --git a/proton-c/src/tests/connection_driver.c b/proton-c/src/tests/connection_driver.c
index 4db324c..639440c 100644
--- a/proton-c/src/tests/connection_driver.c
+++ b/proton-c/src/tests/connection_driver.c
@@ -142,12 +142,13 @@ static void test_message_transfer(test_t *t) {
 /* Handler that opens a connection and sender link */
 pn_event_type_t send_client_handler(test_handler_t *th, pn_event_t *e) {
   switch (pn_event_type(e)) {
-   case PN_CONNECTION_LOCAL_OPEN:
+   case PN_CONNECTION_LOCAL_OPEN: {
     pn_connection_open(pn_event_connection(e));
     pn_session_t *ssn = pn_session(pn_event_connection(e));
     pn_session_open(ssn);
     pn_link_t *snd = pn_sender(ssn, "x");
     pn_link_open(snd);
+   }
     break;
    case PN_LINK_REMOTE_OPEN: {
     struct context *ctx = (struct context*) th->context;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org