chiark / gitweb /
scsi_id: compiler warning on 32-bit
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Fri, 19 Sep 2008 14:53:25 +0000 (14:53 +0000)
committerKay Sievers <kay.sievers@vrfy.org>
Sat, 20 Sep 2008 05:14:46 +0000 (22:14 -0700)
commita4354f9385fa6854360729678491da64be996f03
tree14ac0c350201c250353b03101605b46df8feeb1c
parent279595bd1af86db92b063ac8b70c7ef51c67363c
scsi_id: compiler warning on 32-bit

The sg_io_v4 interface passes pointers as u64s.  It turns out GCC
disapproves of us casting a u64 straight to a 32 bit pointer.

cc1: warnings being treated as errors
scsi_serial.c: In function ‘sg_err_category4’:
scsi_serial.c:159: warning: cast to pointer from integer of different size
scsi_serial.c: In function ‘scsi_dump_v4’:
scsi_serial.c:303: warning: cast to pointer from integer of different size
extras/scsi_id/scsi_serial.c