From baf892ed8fa8e6ecf636b6847c67ac250de31d23 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Wed, 9 May 2007 01:08:53 +0000 Subject: [PATCH] Fix unused parameters passed to Printf(). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9799 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/ruby.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx index db01c7d30..6ee92f021 100644 --- a/Source/Modules/ruby.cxx +++ b/Source/Modules/ruby.cxx @@ -615,11 +615,9 @@ private: String *str = Getattr(n, "feature:docstring"); if (counter == 0 && (str == NULL || Len(str) == 0)) { if (CPlusPlus) { - Printf(doc, " Proxy of C++ %s class", - full_name, class_name); + Printf(doc, " Proxy of C++ %s class", full_name); } else { - Printf(doc, " Proxy of C %s struct", - full_name, class_name); + Printf(doc, " Proxy of C %s struct", full_name); } } } @@ -2871,9 +2869,9 @@ public: Printf(body->def, "VALUE %s(VALUE data) {\n", bodyName); Wrapper_add_localv(body, "args", "Swig::body_args *", "args", "= reinterpret_cast(data)", NIL); Wrapper_add_localv(body, "result", "VALUE", "result", "= Qnil", NIL); - Printf(body->code, "%s++;\n", depthCountName, NIL); + Printf(body->code, "%s++;\n", depthCountName); Printv(body->code, "result = rb_funcall2(args->recv, args->id, args->argc, args->argv);\n", NIL); - Printf(body->code, "%s--;\n", depthCountName, NIL); + Printf(body->code, "%s--;\n", depthCountName); Printv(body->code, "return result;\n", NIL); Printv(body->code, "}", NIL);