warning: array subscript 'uint32_t {aka unsigned int}[0]' is partly outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'}I

I added the following function to convert an uint8_t array to uint32_t. But west build with warning: array subscript 'uint32_t {aka unsigned int}[0]' is partly outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds]
574 | *regVal = spiData2Uint32(rxBufU8);

1 2