diff options
author | Bryan Duxbury <bryanduxbury@apache.org> | 2009-09-01 22:32:50 +0000 |
---|---|---|
committer | Bryan Duxbury <bryanduxbury@apache.org> | 2009-09-01 22:32:50 +0000 |
commit | fd58c55dca197daea0df23a339a1d106dea8189b (patch) | |
tree | 746b658ab3b6d720c1ba063a5600b5a581c3a0b7 | |
parent | db5d5894577c14accc2c81b617fa36dc6924591e (diff) | |
download | thrift-fd58c55dca197daea0df23a339a1d106dea8189b.tar.gz |
THRIFT-571. rb: compact_protocol.c:89: warning: format not a string literal and no format arguments
This patch solves the issue for those of you on Ruby 1.9.1.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@810288 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | lib/rb/ext/compact_protocol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rb/ext/compact_protocol.c b/lib/rb/ext/compact_protocol.c index 7966d3e3f..33a1f9f92 100644 --- a/lib/rb/ext/compact_protocol.c +++ b/lib/rb/ext/compact_protocol.c @@ -86,7 +86,7 @@ static int get_compact_type(VALUE type_value) { } else { char str[50]; sprintf(str, "don't know what type: %d", type); - rb_raise(rb_eStandardError, str); + rb_raise(rb_eStandardError, "%s", str); return 0; } } @@ -348,7 +348,7 @@ static int8_t get_ttype(int8_t ctype) { } else { char str[50]; sprintf(str, "don't know what type: %d", ctype); - rb_raise(rb_eStandardError, str); + rb_raise(rb_eStandardError, "%s", str); return 0; } } |