On 20/11/2023 10:49 pm, Andrew Cooper wrote: > GCC complains: > > drivers/char/arm-uart.c: In function 'dt_uart_init': > drivers/char/arm-uart.c:81:17: error: assignment discards 'const' qualifier > from pointer target type [-Werror=discarded-qualifiers] > 81 | options = ""; > | ^ > > The problem is using the options string for both splitting opt_duart, and to > hold a token "" for no options. > > Use two variables; one mutable one one const.
This should say "and one const". Fixed up locally. ~Andrew
