]> git.ipfire.org Git - thirdparty/qemu.git/commit
pc-bios/s390-ccw: add -Wno-array-bounds
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 May 2022 10:55:15 +0000 (12:55 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Jul 2022 14:58:58 +0000 (16:58 +0200)
commitc0b3607d5938f5ee7fd16ff1e102afe938fd4b39
tree267946b6b90541427366d66e96abab7db106984a
parent74518fb615d5bf84d3fea3abf7b3f465d0ffbfe6
pc-bios/s390-ccw: add -Wno-array-bounds

The option generates a lot of warnings for integers casted to pointers,
for example:

/home/pbonzini/work/upstream/qemu/pc-bios/s390-ccw/dasd-ipl.c:174:19: warning: array subscript 0 is outside array bounds of ‘CcwSeekData[0]’ [-Warray-bounds]
  174 |     seekData->cyl = 0x00;
      |     ~~~~~~~~~~~~~~^~~~~~

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
pc-bios/s390-ccw/Makefile