Closed nscooling closed 2 years ago
Unfortunately, I don't think it fixes the problem everywhere. Some platforms define uint32_t
as unsigned int
instead of long unsigned int
, and then you will still get a warning if "%lu"
is used.
Sorry yes, I just realised they should be the macro PRIu32 from
FYI, LVGL has an LV_PRId32
macro that tries to gracefully handle platforms without inttypes.h
, however there is no LV_PRIu32
macro at the moment.
Fixed general formatting issues in strings across examples generated by -Wformat All based on using
"%d"
for all integers replaced with"%lu"
foruint32_t
types"%ld"
forint32_t
types