Repository: qpid-proton
Updated Branches:
  refs/heads/master 887a4a09b -> 95c99503a


NO-JIRA: Fix some warnings from SWIG generated code.


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

Branch: refs/heads/master
Commit: e6086da9dfc1aaff0f1b795dc19533172a9467df
Parents: 887a4a0
Author: Alan Conway <[email protected]>
Authored: Tue May 3 16:26:05 2016 -0400
Committer: Alan Conway <[email protected]>
Committed: Fri May 13 14:27:57 2016 -0400

----------------------------------------------------------------------
 proton-c/bindings/ruby/ruby.i     | 5 ++++-
 proton-c/include/proton/cproton.i | 1 -
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/e6086da9/proton-c/bindings/ruby/ruby.i
----------------------------------------------------------------------
diff --git a/proton-c/bindings/ruby/ruby.i b/proton-c/bindings/ruby/ruby.i
index 336b222..d5979f3 100644
--- a/proton-c/bindings/ruby/ruby.i
+++ b/proton-c/bindings/ruby/ruby.i
@@ -175,6 +175,9 @@ Keep preprocessor directives and macro expansions in the 
normal header section.
     case PN_STRING:
       $result = rb_str_new($1.u.as_bytes.start, $1.u.as_bytes.size);
       break;
+
+    default:
+       break;
     }
 }
 
@@ -593,7 +596,7 @@ int pn_ssl_get_peer_hostname(pn_ssl_t *ssl, char *OUTPUT, 
size_t *OUTPUT_SIZE);
   }
 
   VALUE pni_ruby_get_from_registry(VALUE key) {
-    rb_funcall(pni_ruby_get_proton_module(), rb_intern("get_from_registry"), 
1, key);
+     return rb_funcall(pni_ruby_get_proton_module(), 
rb_intern("get_from_registry"), 1, key);
   }
 
   void pni_ruby_delete_from_registry(VALUE stored_key) {

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/e6086da9/proton-c/include/proton/cproton.i
----------------------------------------------------------------------
diff --git a/proton-c/include/proton/cproton.i 
b/proton-c/include/proton/cproton.i
index 36153da..26c8117 100644
--- a/proton-c/include/proton/cproton.i
+++ b/proton-c/include/proton/cproton.i
@@ -870,7 +870,6 @@ typedef unsigned long int uintptr_t;
 {
  require:
   msg != NULL;
-  size >= 0;
 }
 
 %contract pn_message_encode(pn_message_t *msg, char *bytes, size_t *size)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to