diff -rauN smartmontools-6.0/os_darwin.cpp smartmontools-6.0-p1/os_darwin.cpp
old
|
new
|
|
72 | 72 | |
73 | 73 | // tries to guess device type given the name (a path). See utility.h |
74 | 74 | // for return values. |
75 | | int guess_device_type (const char* dev_name) { |
| 75 | int guess_device_type (const char* dev_name __attribute__((__unused__))) { |
76 | 76 | // Only ATA is supported right now, so that's what it'd better be. |
77 | | dev_name = dev_name; // suppress unused warning. |
78 | 77 | return CONTROLLER_ATA; |
79 | 78 | } |
80 | 79 | |
… |
… |
|
422 | 421 | |
423 | 422 | // There's no special handling needed for hidden devices, the kernel |
424 | 423 | // must deal with them. |
425 | | int escalade_command_interface(int fd, int escalade_port, int escalade_type, |
426 | | smart_command_set command, int select, |
427 | | char *data) |
| 424 | int escalade_command_interface(int fd __attribute__((__unused__)), int escalade_port __attribute__((__unused__)), int escalade_type __attribute__((__unused__)), |
| 425 | smart_command_set command __attribute__((__unused__)), int select __attribute__((__unused__)), |
| 426 | char *data __attribute__((__unused__))) |
428 | 427 | { |
429 | | fd = fd; |
430 | | escalade_port = escalade_port; |
431 | | escalade_type = escalade_type; |
432 | | command = command; |
433 | | select = select; |
434 | | data = data; |
435 | 428 | return -1; |
436 | 429 | } |
437 | 430 | |
438 | | int areca_command_interface(int fd, int escalade_port, |
439 | | smart_command_set command, int select, |
440 | | char *data) |
| 431 | int areca_command_interface(int fd __attribute__((__unused__)), int escalade_port __attribute__((__unused__)), |
| 432 | smart_command_set command __attribute__((__unused__)), int select __attribute__((__unused__)), |
| 433 | char *data __attribute__((__unused__))) |
441 | 434 | { |
442 | | fd = fd; |
443 | | escalade_port = escalade_port; |
444 | | command = command; |
445 | | select = select; |
446 | | data = data; |
447 | 435 | return -1; |
448 | 436 | } |
449 | 437 | |
450 | 438 | |
451 | 439 | |
452 | 440 | |
453 | | int marvell_command_interface(int fd, smart_command_set command, |
454 | | int select, char *data) |
| 441 | int marvell_command_interface(int fd __attribute__((__unused__)), smart_command_set command __attribute__((__unused__)), |
| 442 | int select __attribute__((__unused__)), char *data __attribute__((__unused__))) |
455 | 443 | { |
456 | | fd = fd; |
457 | | command = command; |
458 | | select = select; |
459 | | data = data; |
460 | 444 | return -1; |
461 | 445 | } |
462 | 446 | |
463 | | int highpoint_command_interface(int fd, smart_command_set command, int select, char *data) |
| 447 | int highpoint_command_interface(int fd __attribute__((__unused__)), smart_command_set command __attribute__((__unused__)), int select __attribute__((__unused__)), char *data __attribute__((__unused__))) |
464 | 448 | { |
465 | | fd = fd; |
466 | | command = command; |
467 | | select = select; |
468 | | data = data; |
469 | 449 | return -1; |
470 | 450 | } |
471 | 451 | |
472 | 452 | // Interface to SCSI devices. See os_linux.c |
473 | | int do_scsi_cmnd_io(int fd, struct scsi_cmnd_io * iop, int report) { |
474 | | fd = fd; |
475 | | iop = iop; |
476 | | report = report; |
| 453 | int do_scsi_cmnd_io(int fd __attribute__((__unused__)), struct scsi_cmnd_io * iop __attribute__((__unused__)), int report __attribute__((__unused__))) { |
477 | 454 | return -ENOSYS; |
478 | 455 | } |