Hi I just updated edk2 package and trying to build a BaseTools module.
But it reported an error like the following
brotli/c/dec/decode.c:2033:41: error:argument 2 of type ‘const uint8_t *’ {或称 ‘const unsigned char *’} declared as a pointer [-Werror=vla-parameter]
2033 | size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from brotli/c/dec/decode.c:7:
./brotli/c/include/brotli/decode.h:204:19: 附注:previously declared as a variable length array ‘const uint8_t[*decoded_size]’ {或称 ‘const unsigned char[*decoded_size]’}
204 | const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)],
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
brotli/c/dec/decode.c:2034:14: error:argument 4 of type ‘uint8_t *’ {或称 ‘unsigned char *’} declared as a pointer [-Werror=vla-parameter]
2034 | uint8_t* decoded_buffer) {
| ~~~~~~~~~^~~~~~~~~~~~~~
In file included from brotli/c/dec/decode.c:7:
./brotli/c/include/brotli/decode.h:206:13: 附注:previously declared as a variable length array ‘uint8_t[encoded_size]’ {或称 ‘unsigned char[encoded_size]’}
206 | uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]);
I'm using gcc 11 and with manjaro system. I would like to ask if it is a bug and how to fix it. Thanks a lot!!