Hello,

I'm getting the following compile errors:

/root/download/qemu/git/qemu/hw/megasas.c: In function ‘megasas_class_init’:
/root/download/qemu/git/qemu/hw/megasas.c:2155:14: error: assignment from incompatible pointer type [-Werror]
pc->exit = megasas_scsi_uninit;

With #define DEBUG_SCSI
hw/scsi-disk.c: In function ‘scsi_write_complete’:
hw/scsi-disk.c:450:9: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Werror=format]
hw/scsi-disk.c: In function ‘scsi_disk_emulate_read_data’:
hw/scsi-disk.c:1274:9: error: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 2 has type ‘int’ [-Werror=format]
hw/scsi-disk.c: In function ‘scsi_disk_emulate_write_data’:
hw/scsi-disk.c:1452:9: error: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 2 has type ‘int’ [-Werror=format]
hw/scsi-disk.c: In function ‘scsi_new_request’:
hw/scsi-disk.c:2091:5: error: format ‘%x’ expects a matching ‘unsigned int’ argument [-Werror=format]
hw/scsi-disk.c:2094:25: error: ‘r’ undeclared (first use in this function)
hw/scsi-disk.c:2094:25: note: each undeclared identifier is reported only once for each function it appears in

Please fix it.

gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)

Thnx.

Ciao,
Gerhard


Reply via email to