mustek: Fix [-Wunused-const-variable=] compiler warning

The const variables' definition has been #ifdef'd to prevent loss of
protocol info.

Neither scsi_area_and_windows nor scsi_lookup_table appear to have
been used for anything.
merge-requests/1/head
Olaf Meeuwissen 2017-06-26 11:16:55 +09:00
rodzic 398d5850fa
commit 39849809d1
1 zmienionych plików z 12 dodań i 0 usunięć

Wyświetl plik

@ -200,9 +200,15 @@ static const SANE_Byte scsi_inquiry[] = {
static const SANE_Byte scsi_test_unit_ready[] = {
MUSTEK_SCSI_TEST_UNIT_READY, 0x00, 0x00, 0x00, 0x00, 0x00
};
/* Remove #ifdef and this comment when this SCSI command is used for
something. Keeping this definition around so we don't loose info
about the protocol.
*/
#ifdef ENABLE_MUSTEK_SCSI_AREA_AND_WINDOWS
static const SANE_Byte scsi_area_and_windows[] = {
MUSTEK_SCSI_AREA_AND_WINDOWS, 0x00, 0x00, 0x00, 0x09, 0x00
};
#endif
static const SANE_Byte scsi_request_sense[] = {
MUSTEK_SCSI_REQUEST_SENSE, 0x00, 0x00, 0x00, 0x04, 0x00
};
@ -227,10 +233,16 @@ static const SANE_Byte scsi_read_data[] = {
static const SANE_Byte scsi_send_data[] = {
MUSTEK_SCSI_SEND_DATA, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
/* Remove #ifdef and this comment when this SCSI command is used for
something. Keeping this definition around so we don't loose info
about the protocol.
*/
#ifdef ENABLE_MUSTEK_SCSI_LOOKUP_TABLE
static const SANE_Byte scsi_lookup_table[] = {
MUSTEK_SCSI_LOOKUP_TABLE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
};
#endif
/* prototypes */
static SANE_Status area_and_windows (Mustek_Scanner * s);