]> xenbits.xensource.com Git - seabios.git/commit
block: Fix compilation with CentOS 6 fix-build
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 21 Mar 2019 15:34:35 +0000 (15:34 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 21 Mar 2019 16:03:56 +0000 (16:03 +0000)
commit39d7f79fb54005da8a967f0e57b108f909ca1248
tree5f6151711172c314b72833fb93a283a5d8a25331
parentf4c6e4c19daf3deac2d7fc3288db5294aba955ad
block: Fix compilation with CentOS 6

GCC 4.4 from CentOS 6 chokes in the following way:

  src/hw/blockcmd.c: In function 'scsi_rep_luns_scan':
  src/hw/blockcmd.c:229: error: unknown field 'cdbcmd' specified in initializer
  src/hw/blockcmd.c:229: warning: missing braces around initializer
  src/hw/blockcmd.c:229: warning: (near initialization for 'op.<anonymous>')
  src/hw/blockcmd.c:229: warning: initialization makes integer from pointer without a cast

Avoid using an initialiser list.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
Discovered while adding CentOS 6 to Xen's CI system.  If this patch is
acceptable, what are the chances of having it backported to 1.12-stable ?
src/hw/blockcmd.c