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:
Sitsofe Wheeler
2015-03-01 15:45:14 +00:00
parent 04ff9584ee
commit 5629afa364
3 changed files with 6 additions and 3 deletions

View File

@@ -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);

View File

@@ -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");

View File

@@ -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");