Skip to content
Snippets Groups Projects
Commit 69427ded authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Konstantin Osipov
Browse files

vinyl: fix warnings if compiled with NDEBUG

src/box/vinyl.c: In function ‘vy_range_write_run’:
src/box/vinyl.c:2365:1: error: label ‘create_failed’ defined but not used [-Werror=unused-label]
 create_failed:
 ^
src/box/vinyl.c: In function ‘vy_task_compact_execute’:
src/box/vinyl.c:3190:31: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body]
           rc = -1; goto out;});
                               ^
src/box/vinyl.c:3208:1: error: label ‘unlink_error’ defined but not used [-Werror=unused-label]
 unlink_error:
 ^
src/box/vinyl.c: In function ‘vy_mem_iterator_close’:
src/box/vinyl.c:6829:26: error: unused variable ‘itr’ [-Werror=unused-variable]
  struct vy_mem_iterator *itr = (struct vy_mem_iterator *) vitr;
                          ^
src/box/vinyl.c: In function ‘vy_txw_iterator_close’:
src/box/vinyl.c:7087:26: error: unused variable ‘itr’ [-Werror=unused-variable]
  struct vy_txw_iterator *itr = (struct vy_txw_iterator *) vitr;
                          ^
parent 9532f5be
No related merge requests found
Loading
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