Skip to content
Snippets Groups Projects
Commit 4cac1677 authored by Ilya Verbin's avatar Ilya Verbin Committed by Vladimir Davydov
Browse files

perf: fix warnings in column_scan_module.c

Fix the following warnings (with ENABLE_READ_VIEW defined):

```
./perf/lua/column_scan_module.c:59:18: error: unused variable ‘index_id’ [-Werror=unused-variable]
   59 |         uint32_t index_id = luaL_checkinteger(L, 2);
      |                  ^~~~~~~~

./perf/lua/column_scan_module.c:149:18: error: unused variable ‘index_id’ [-Werror=unused-variable]
  149 |         uint32_t index_id = luaL_checkinteger(L, 2);
      |                  ^~~~~~~~
```

NO_DOC=perf test
NO_TEST=perf test
NO_CHANGELOG=perf test
parent 5ce010c5
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ sum_iterator_rv_lua_func(struct lua_State *L)
if (space == NULL)
return luaT_error(L);
box_raw_read_view_index_t *index =
box_raw_read_view_index_by_id(space, 0);
box_raw_read_view_index_by_id(space, index_id);
if (index == NULL)
return luaT_error(L);
char key[8];
......@@ -153,7 +153,7 @@ sum_scanner_rv_lua_func(struct lua_State *L)
if (space == NULL)
return luaT_error(L);
box_raw_read_view_index_t *index =
box_raw_read_view_index_by_id(space, 0);
box_raw_read_view_index_by_id(space, index_id);
if (index == NULL)
return luaT_error(L);
char key[8];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment