From fe85dd22d8c8c2fb262ac1deb1c42781cb849bcd Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Sat, 5 Jan 2019 11:17:06 -0700 Subject: [PATCH] [OCaml] Don't generate unused _v variables --- Source/Modules/ocaml.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/Modules/ocaml.cxx b/Source/Modules/ocaml.cxx index cfdb31ebd..a73219abc 100644 --- a/Source/Modules/ocaml.cxx +++ b/Source/Modules/ocaml.cxx @@ -515,7 +515,6 @@ public: // adds local variables Wrapper_add_local(f, "args", "CAMLparam1(args)"); Wrapper_add_local(f, "ret", "SWIG_CAMLlocal2(swig_result,rv)"); - Wrapper_add_local(f, "_v", "int _v = 0"); if (isOverloaded) { Wrapper_add_local(f, "i", "int i"); Wrapper_add_local(f, "argc", "int argc = caml_list_length(args)"); @@ -711,7 +710,6 @@ public: "free(argv);\n" "CAMLreturn(%s(args));\n", &maxargs); - Wrapper_add_local(df, "_v", "int _v = 0"); Wrapper_add_local(df, "argv", "CAML_VALUE *argv"); /* Undifferentiate name .. this is the dispatch function */