From 99781e049f5eb31e881caa59f52cbd793d288c8a Mon Sep 17 00:00:00 2001 From: Victor Gao Date: Wed, 19 Jul 2017 18:24:01 -0700 Subject: [PATCH] comment out unused parameters Summary: This removes/comments out/silences one or more unused parameters in the files. We are going to enable `-Wunused-parameter` in fbcode and this fixes a case that automated tooling can't handle. This diff is automatically generated. Reviewers are added heuristically. Reviewed By: ebetica Differential Revision: D5453273 fbshipit-source-id: ccd5342231c0356856b1cf0db4b3778ad3361f57 --- fblualib/python/Lib.cpp | 2 +- fblualib/thrift/test/LuaObjectTestModule.cpp | 2 +- fblualib/torch/AsyncRNG.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fblualib/python/Lib.cpp b/fblualib/python/Lib.cpp index 22d3b6e..481521d 100644 --- a/fblualib/python/Lib.cpp +++ b/fblualib/python/Lib.cpp @@ -126,7 +126,7 @@ DEFINE_GET(Dict) #undef DEFINE_GET -int checkNoRefs(lua_State* L) { +int checkNoRefs(lua_State* /*L*/) { debugCheckNoRefs(); return 0; } diff --git a/fblualib/thrift/test/LuaObjectTestModule.cpp b/fblualib/thrift/test/LuaObjectTestModule.cpp index 48c0ae7..00b693d 100644 --- a/fblualib/thrift/test/LuaObjectTestModule.cpp +++ b/fblualib/thrift/test/LuaObjectTestModule.cpp @@ -42,7 +42,7 @@ int writeTensor(lua_State* L) { return pushAsString(L, make(*p)); } -LuaObject getFromString(lua_State* L, int index) { +LuaObject getFromString(lua_State* L, int /*index*/) { folly::ByteRange br(luaGetStringChecked(L, 1)); StringReader reader(&br); return cppDecode(reader); diff --git a/fblualib/torch/AsyncRNG.cpp b/fblualib/torch/AsyncRNG.cpp index efb3230..e329538 100644 --- a/fblualib/torch/AsyncRNG.cpp +++ b/fblualib/torch/AsyncRNG.cpp @@ -402,7 +402,7 @@ using GeneratorFactory = typename AsyncRNG::Generator (*)(lua_State*, int&); // threads can produce, reads of up to chunk_size * num_threads random numbers // should return immediately. int newRNG(lua_State* L, - const char* distributionName, + const char* /*distributionName*/, GeneratorFactory floatGen, GeneratorFactory doubleGen) { auto typeName = luaGetStringChecked(L, 1);