lvgl / lv_lib_png

PNG decoder for LVGL
MIT License
67 stars 26 forks source link

fix warnings #20

Closed FASTSHIFT closed 3 years ago

FASTSHIFT commented 3 years ago
CC /home/vifextech/workpath/misc/lv_sim_eclipse_sdl/lv_lib_png/lv_png.c
/home/vifextech/workpath/misc/lv_sim_eclipse_sdl/lv_lib_png/lodepng.c:32:5: warning: "LV_LVGL_H_INCLUDE_SIMPLE" is not defined, evaluates to 0 [-Wundef]
   32 | #if LV_LVGL_H_INCLUDE_SIMPLE
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
/home/vifextech/workpath/misc/lv_sim_eclipse_sdl/lv_lib_png/lodepng.c:620:10: warning: no previous prototype for ‘lode_png_test_bitreader’ [-Wmissing-prototypes]
  620 | unsigned lode_png_test_bitreader(const unsigned char* data, size_t size,
      |          ^~~~~~~~~~~~~~~~~~~~~~~
/home/vifextech/workpath/misc/lv_sim_eclipse_sdl/lv_lib_png/lodepng.c:3638:10: warning: no previous prototype for ‘lodepng_convert_rgb’ [-Wmissing-prototypes]
 3638 | unsigned lodepng_convert_rgb(
      |          ^~~~~~~~~~~~~~~~~~~
CC /home/vifextech/workpath/misc/lv_sim_eclipse_sdl/lv_lib_png/lodepng.c
kisvegabor commented 3 years ago

Merging, thank you!