Skip to content

Commit

Permalink
Fix unused variable warning in Release build
Browse files Browse the repository at this point in the history
  • Loading branch information
RobAtticus committed Sep 11, 2018
1 parent 0dc5bbb commit 2092b2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bgw/job.c
Expand Up @@ -108,7 +108,6 @@ bgw_job_get_all(size_t alloc_size, MemoryContext mctx)
.list = NIL,
.alloc_size = alloc_size,
};
int num_tuples;
ScannerCtx scanctx = {
.table = catalog->tables[BGW_JOB].id,
.index = InvalidOid,
Expand All @@ -119,8 +118,7 @@ bgw_job_get_all(size_t alloc_size, MemoryContext mctx)
.result_mctx = mctx,
};

num_tuples = scanner_scan(&scanctx);
Assert(list_length(list_data.list) == num_tuples);
scanner_scan(&scanctx);
return list_data.list;
}

Expand Down

0 comments on commit 2092b2a

Please sign in to comment.