Skip to content

Commit 4b4473f

Browse files
test/fio: remove assign-only variable
This variable in the unit test gets flagged by -Werror which is enabled by default when compiling the unit tests in a container based environment. Examining the code the warning appears correct and it ought to be OK to simply remove this variable. Signed-off-by: John Mulligan <[email protected]>
1 parent 00bae68 commit 4b4473f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/fio/fio_librgw.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,6 @@ namespace {
300300
*/
301301
static void fio_librgw_cleanup(struct thread_data *td)
302302
{
303-
int r = 0;
304-
305303
dprint(FD_IO, "fio_librgw_cleanup\n");
306304

307305
/* cleanup specific data */
@@ -312,9 +310,9 @@ namespace {
312310
data->release_handles();
313311

314312
if (data->bucket_fh) {
315-
r = rgw_fh_rele(data->fs, data->bucket_fh, 0 /* flags */);
313+
rgw_fh_rele(data->fs, data->bucket_fh, 0 /* flags */);
316314
}
317-
r = rgw_umount(data->fs, RGW_UMOUNT_FLAG_NONE);
315+
rgw_umount(data->fs, RGW_UMOUNT_FLAG_NONE);
318316
librgw_shutdown(data->rgw_h);
319317
td->io_ops_data = nullptr;
320318
delete data;

0 commit comments

Comments
 (0)