Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
comment out unused parameters
Browse files Browse the repository at this point in the history
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
  • Loading branch information
vgao1996 authored and facebook-github-bot committed Jul 20, 2017
1 parent ac86650 commit 99781e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fblualib/python/Lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ DEFINE_GET(Dict)

#undef DEFINE_GET

int checkNoRefs(lua_State* L) {
int checkNoRefs(lua_State* /*L*/) {
debugCheckNoRefs();
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion fblualib/thrift/test/LuaObjectTestModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion fblualib/torch/AsyncRNG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ using GeneratorFactory = typename AsyncRNG<T>::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<float> floatGen,
GeneratorFactory<double> doubleGen) {
auto typeName = luaGetStringChecked(L, 1);
Expand Down

0 comments on commit 99781e0

Please sign in to comment.