Fix warnings about omitted parameter names in scsiapi_macos.c

This commit is contained in:
Adam Honse
2025-01-17 00:58:33 -06:00
parent d9d3bc2b6c
commit 253bf9c077

View File

@@ -23,17 +23,22 @@
extern "C" {
#endif
#define UNUSED(x) (void)(x)
/*---------------------------------------------------------*\
| Functions |
\*---------------------------------------------------------*/
void scsi_close(struct scsi_device * /*dev*/)
void scsi_close(struct scsi_device * dev)
{
UNUSED(dev);
}
struct scsi_device_info * scsi_enumerate(const char * /*vendor*/, const char * /*product*/)
struct scsi_device_info * scsi_enumerate(const char * vendor, const char * product)
{
UNUSED(vendor);
UNUSED(product);
return(NULL);
}
@@ -54,13 +59,23 @@ void scsi_free_enumeration(struct scsi_device_info * devs)
}
}
struct scsi_device * scsi_open_path(const char * /*path*/)
struct scsi_device * scsi_open_path(const char * path)
{
UNUSED(path);
return(NULL);
}
int scsi_write(struct scsi_device * /*dev*/, const unsigned char * /*data*/, size_t /*data_length*/, const unsigned char * /*cdb*/, size_t /*cdb_length*/, unsigned char * /*sense*/, size_t /*sense_length*/)
int scsi_write(struct scsi_device * dev, const unsigned char * data, size_t data_length, const unsigned char * cdb, size_t cdb_length, unsigned char * sense, size_t sense_length)
{
UNUSED(dev);
UNUSED(data);
UNUSED(data_length);
UNUSED(cdb);
UNUSED(cdb_length);
UNUSED(sense);
UNUSED(sense_length);
return 0;
}