T0400_inquiry_basic: fix compiler warnings
gcc complains about an unused parameter (mark it as such) and unused labels (remove 'em). Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
This commit is contained in:
@@ -22,7 +22,8 @@
|
|||||||
#include "scsi-lowlevel.h"
|
#include "scsi-lowlevel.h"
|
||||||
#include "iscsi-test.h"
|
#include "iscsi-test.h"
|
||||||
|
|
||||||
int T0400_inquiry_basic(const char *initiator, const char *url, int data_loss, int show_info)
|
int T0400_inquiry_basic(const char *initiator, const char *url, int data_loss _U_,
|
||||||
|
int show_info)
|
||||||
{
|
{
|
||||||
struct iscsi_context *iscsi;
|
struct iscsi_context *iscsi;
|
||||||
struct scsi_task *task;
|
struct scsi_task *task;
|
||||||
@@ -100,7 +101,6 @@ int T0400_inquiry_basic(const char *initiator, const char *url, int data_loss, i
|
|||||||
}
|
}
|
||||||
printf("[OK]\n");
|
printf("[OK]\n");
|
||||||
|
|
||||||
test2:
|
|
||||||
printf("Check that standard data is >= 36 bytes in size ... ");
|
printf("Check that standard data is >= 36 bytes in size ... ");
|
||||||
if (full_size < 36) {
|
if (full_size < 36) {
|
||||||
printf("[FAILED]\n");
|
printf("[FAILED]\n");
|
||||||
@@ -111,8 +111,6 @@ test2:
|
|||||||
}
|
}
|
||||||
printf("[OK]\n");
|
printf("[OK]\n");
|
||||||
|
|
||||||
|
|
||||||
test3:
|
|
||||||
printf("Check device-type is either of DISK, TAPE or CD/DVD ... ");
|
printf("Check device-type is either of DISK, TAPE or CD/DVD ... ");
|
||||||
switch (inq->device_type) {
|
switch (inq->device_type) {
|
||||||
case SCSI_INQUIRY_PERIPHERAL_DEVICE_TYPE_DIRECT_ACCESS:
|
case SCSI_INQUIRY_PERIPHERAL_DEVICE_TYPE_DIRECT_ACCESS:
|
||||||
|
|||||||
Reference in New Issue
Block a user