Hi @converse , thanks for suggesting to switch to newlib.
To try your suggestion, I switched the project to newlib using "Quicksettings".
Using newlib, the warning message appears as expected.
However, now the compiler emits a warning regarding the following lines:
uint32_t i = 0;
printf("%u\n", i);
The warning reads
warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
Obviously, with switching to newlib a different stdint.h header file has been included. Using newlib, uint32_t is now defined as long unsigned int.
In comparison, Redlib defines uint32_t as unsigned int.
To fix this, I'll have to adapt all format strings accordingly.
Anything else important that the change to newlib brings along?