Fix warnings about omitted parameter names in scsiapi_macos.c
This commit is contained in:
parent
d9d3bc2b6c
commit
253bf9c077
1 changed files with 20 additions and 5 deletions
|
|
@ -23,17 +23,22 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define UNUSED(x) (void)(x)
|
||||||
|
|
||||||
/*---------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| Functions |
|
| 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);
|
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);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue