For some reason the host gcc (11 & 12) does not believe rx_buf_size is constant. Let's work around it by using the sizeof() expression it is initialized to instead. This fixes a build error when targetting native targets which use the host gcc: tests/drivers/uart/uart_async_api/src/test_uart_async.c:236:34: error: expression in static assertion is not constant 236 | BUILD_ASSERT(rx_buf_size <= sizeof(tdata.rx_first_buffer), "Invalid buf size"); Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| test_uart_async.c | ||
| test_uart_wide.c | ||
| test_uart.h | ||