Re: [RFC PATCH 10/12] pc-bios/optionrom: compile with -Wno-array-bounds

2022-05-02 Thread Paolo Bonzini
On 5/2/22 09:37, Michael Tokarev wrote: pvh_main.c: In function ‘pvh_load_kernel’: pvh_main.c:101:42: warning: array subscript 0 is outside array bounds of ‘uint16_t[0]’ {aka ‘short unsigned int[]’} [-Warray-bounds]    101 | uint32_t ebda_paddr = ((uint32_t)*((uint16_t *)EBDA_BASE_ADDR

Re: [RFC PATCH 10/12] pc-bios/optionrom: compile with -Wno-array-bounds

2022-05-02 Thread Michael Tokarev
29.04.2022 17:18, Paolo Bonzini wrote: Avoids the following bogus warning: pvh_main.c: In function ‘pvh_load_kernel’: pvh_main.c:101:42: warning: array subscript 0 is outside array bounds of ‘uint16_t[0]’ {aka ‘short unsigned int[]’} [-Warray-bounds] 101 | uint32_t ebda_paddr = ((uin

Re: [RFC PATCH 10/12] pc-bios/optionrom: compile with -Wno-array-bounds

2022-04-30 Thread Richard Henderson
On 4/29/22 07:18, Paolo Bonzini wrote: Avoids the following bogus warning: pvh_main.c: In function ‘pvh_load_kernel’: pvh_main.c:101:42: warning: array subscript 0 is outside array bounds of ‘uint16_t[0]’ {aka ‘short unsigned int[]’} [-Warray-bounds] 101 | uint32_t ebda_paddr = ((uin

[RFC PATCH 10/12] pc-bios/optionrom: compile with -Wno-array-bounds

2022-04-29 Thread Paolo Bonzini
Avoids the following bogus warning: pvh_main.c: In function ‘pvh_load_kernel’: pvh_main.c:101:42: warning: array subscript 0 is outside array bounds of ‘uint16_t[0]’ {aka ‘short unsigned int[]’} [-Warray-bounds] 101 | uint32_t ebda_paddr = ((uint32_t)*((uint16_t *)EBDA_BASE_ADDR)) << 4