test_preventallow_*.c: Silence clang empty body warning
Clang whinges about an empty loop body when it sees code like while (i = 0; i++; i < 2); but in test_preventallow_*.c this looks intentional, so move the semi-colon to a line of its own to make clang happy. Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
This commit is contained in:
@@ -61,7 +61,8 @@ test_preventallow_cold_reset(void)
|
||||
logging(LOG_VERBOSE, "Perform cold reset on target");
|
||||
ret = iscsi_task_mgmt_target_cold_reset_sync(sd->iscsi_ctx);
|
||||
logging(LOG_VERBOSE, "Wait until all unit attentions clear");
|
||||
while (testunitready(sd, EXPECT_STATUS_GOOD) != 0);
|
||||
while (testunitready(sd, EXPECT_STATUS_GOOD) != 0)
|
||||
;
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
|
||||
|
||||
|
||||
@@ -62,7 +62,8 @@ test_preventallow_lun_reset(void)
|
||||
ret = iscsi_task_mgmt_lun_reset_sync(sd->iscsi_ctx, sd->iscsi_lun);
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
logging(LOG_VERBOSE, "Wait until all unit attentions clear");
|
||||
while (testunitready(sd, EXPECT_STATUS_GOOD) != 0);
|
||||
while (testunitready(sd, EXPECT_STATUS_GOOD) != 0)
|
||||
;
|
||||
|
||||
|
||||
logging(LOG_VERBOSE, "Try to eject the medium");
|
||||
|
||||
@@ -62,7 +62,8 @@ test_preventallow_warm_reset(void)
|
||||
ret = iscsi_task_mgmt_target_warm_reset_sync(sd->iscsi_ctx);
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
logging(LOG_VERBOSE, "Wait until all unit attentions clear");
|
||||
while (testunitready(sd, EXPECT_STATUS_GOOD) != 0);
|
||||
while (testunitready(sd, EXPECT_STATUS_GOOD) != 0)
|
||||
;
|
||||
|
||||
|
||||
logging(LOG_VERBOSE, "Try to eject the medium");
|
||||
|
||||
Reference in New Issue
Block a user