Author: bryanduxbury
Date: Tue Sep  1 22:32:50 2009
New Revision: 810288

URL: http://svn.apache.org/viewvc?rev=810288&view=rev
Log:
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.


Modified:
    incubator/thrift/trunk/lib/rb/ext/compact_protocol.c

Modified: incubator/thrift/trunk/lib/rb/ext/compact_protocol.c
URL: 
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/ext/compact_protocol.c?rev=810288&r1=810287&r2=810288&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/ext/compact_protocol.c (original)
+++ incubator/thrift/trunk/lib/rb/ext/compact_protocol.c Tue Sep  1 22:32:50 
2009
@@ -86,7 +86,7 @@
   } 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 @@
   } 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;
   }
 }


Reply via email to