olikraus / ucglib

Arduino True Color Library for TFTs and OLEDs
https://github.com/olikraus/ucglib/wiki
Other
267 stars 77 forks source link

Fix build warnings #121

Closed fornellas closed 4 years ago

fornellas commented 5 years ago

I'm getting a fair amount of warnings when building the library. They should all be simple to fix. @olikraus would you be willing to merge a PR if I work on it?

  CC    ../ucglib/csrc/ucg_rotate.c
../ucglib/csrc/ucg_rotate.c:68:11: warning: no previous prototype for 'ucg_dev_rotate90' [-Wmissing-prototypes]
 ucg_int_t ucg_dev_rotate90(ucg_t *ucg, ucg_int_t msg, void *data)
           ^~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_rotate.c:149:11: warning: no previous prototype for 'ucg_dev_rotate180' [-Wmissing-prototypes]
 ucg_int_t ucg_dev_rotate180(ucg_t *ucg, ucg_int_t msg, void *data)
           ^~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_rotate.c:208:11: warning: no previous prototype for 'ucg_dev_rotate270' [-Wmissing-prototypes]
 ucg_int_t ucg_dev_rotate270(ucg_t *ucg, ucg_int_t msg, void *data)
           ^~~~~~~~~~~~~~~~~
  CC    ../ucglib/csrc/ucg_com_msg_api.c
../ucglib/csrc/ucg_com_msg_api.c:38:9: warning: no previous prototype for 'ucg_com_template_cb' [-Wmissing-prototypes]
 int16_t ucg_com_template_cb(ucg_t *ucg, int16_t msg, uint32_t arg, uint8_t *data)
         ^~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_com_msg_api.c: In function 'ucg_com_template_cb':
../ucglib/csrc/ucg_com_msg_api.c:38:36: warning: unused parameter 'ucg' [-Wunused-parameter]
 int16_t ucg_com_template_cb(ucg_t *ucg, int16_t msg, uint32_t arg, uint8_t *data)
                                    ^~~
../ucglib/csrc/ucg_com_msg_api.c:38:63: warning: unused parameter 'arg' [-Wunused-parameter]
 int16_t ucg_com_template_cb(ucg_t *ucg, int16_t msg, uint32_t arg, uint8_t *data)
                                                               ^~~
../ucglib/csrc/ucg_com_msg_api.c:38:77: warning: unused parameter 'data' [-Wunused-parameter]
 int16_t ucg_com_template_cb(ucg_t *ucg, int16_t msg, uint32_t arg, uint8_t *data)
                                                                             ^~~~
../ucglib/csrc/ucg_com_msg_api.c: At top level:
../ucglib/csrc/ucg_com_msg_api.c:182:6: warning: no previous prototype for 'ucg_com_SendStringP' [-Wmissing-prototypes]
 void ucg_com_SendStringP(ucg_t *ucg, uint16_t cnt, const ucg_pgm_uint8_t *byte_ptr)
      ^~~~~~~~~~~~~~~~~~~
  CC    ../ucglib/csrc/ucg_dev_ic_hx8352c.c
../ucglib/csrc/ucg_dev_ic_hx8352c.c:140:11: warning: no previous prototype for 'ucg_handle_hx8352c_l90fx' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_hx8352c_l90fx(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_hx8352c.c:180:11: warning: no previous prototype for 'ucg_handle_hx8352c_l90tc' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_hx8352c_l90tc(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_hx8352c.c:278:11: warning: no previous prototype for 'ucg_handle_hx8352c_l90se' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_hx8352c_l90se(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_hx8352c.c: In function 'ucg_handle_hx8352c_l90se':
../ucglib/csrc/ucg_dev_ic_hx8352c.c:306:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i, j;
               ^
../ucglib/csrc/ucg_dev_ic_hx8352c.c:280:11: note: shadowed declaration is here
   uint8_t i;
           ^
../ucglib/csrc/ucg_dev_ic_hx8352c.c:306:18: warning: variable 'j' set but not used [-Wunused-but-set-variable]
     ucg_int_t i, j;
                  ^
../ucglib/csrc/ucg_dev_ic_hx8352c.c: In function 'ucg_ext_hx8352c_18':
../ucglib/csrc/ucg_dev_ic_hx8352c.c:404:63: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_hx8352c_18(ucg_t *ucg, ucg_int_t msg, void *data)
                                                               ^~~~
  CC    ../ucglib/csrc/ucg_init.c
../ucglib/csrc/ucg_init.c:45:6: warning: no previous prototype for 'ucg_init_struct' [-Wmissing-prototypes]
 void ucg_init_struct(ucg_t *ucg)
      ^~~~~~~~~~~~~~~
  CC    ../ucglib/csrc/ucg_dev_ic_pcf8833.c
../ucglib/csrc/ucg_dev_ic_pcf8833.c:149:11: warning: no previous prototype for 'ucg_handle_pcf8833_l90fx' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_pcf8833_l90fx(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_pcf8833.c:192:11: warning: no previous prototype for 'ucg_handle_pcf8833_l90tc' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_pcf8833_l90tc(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_pcf8833.c:277:11: warning: no previous prototype for 'ucg_handle_pcf8833_l90se' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_pcf8833_l90se(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_pcf8833.c: In function 'ucg_handle_pcf8833_l90se':
../ucglib/csrc/ucg_dev_ic_pcf8833.c:294:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i;
               ^
../ucglib/csrc/ucg_dev_ic_pcf8833.c:279:11: note: shadowed declaration is here
   uint8_t i;
           ^
../ucglib/csrc/ucg_dev_ic_pcf8833.c: In function 'ucg_ext_pcf8833_16':
../ucglib/csrc/ucg_dev_ic_pcf8833.c:399:63: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_pcf8833_16(ucg_t *ucg, ucg_int_t msg, void *data)
                                                               ^~~~
  CC    ../ucglib/csrc/ucg_dev_tft_240x320_ili9341.c
  CC    ../ucglib/csrc/ucg_dev_oled_128x128_ft.c
  CC    ../ucglib/csrc/ucg_vector_font_data.c
  CC    ../ucglib/csrc/ucg_box.c
  CC    ../ucglib/csrc/ucg_clip.c
  CC    ../ucglib/csrc/ucg_pixel.c
  CC    ../ucglib/csrc/ucg_dev_tft_240x320_ili9325_spi.c
  CC    ../ucglib/csrc/ucg_dev_tft_240x320_ssd1289.c
  CC    ../ucglib/csrc/ucg_dev_ic_ili9341.c
../ucglib/csrc/ucg_dev_ic_ili9341.c:123:11: warning: no previous prototype for 'ucg_handle_ili9341_l90fx' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ili9341_l90fx(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ili9341.c:167:11: warning: no previous prototype for 'ucg_handle_ili9341_l90tc' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ili9341_l90tc(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ili9341.c:255:11: warning: no previous prototype for 'ucg_handle_ili9341_l90se' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ili9341_l90se(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ili9341.c: In function 'ucg_handle_ili9341_l90se':
../ucglib/csrc/ucg_dev_ic_ili9341.c:272:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i;
               ^
../ucglib/csrc/ucg_dev_ic_ili9341.c:257:11: note: shadowed declaration is here
   uint8_t i;
           ^
../ucglib/csrc/ucg_dev_ic_ili9341.c: In function 'ucg_ext_ili9341_18':
../ucglib/csrc/ucg_dev_ic_ili9341.c:372:63: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_ili9341_18(ucg_t *ucg, ucg_int_t msg, void *data)
                                                               ^~~~
  CC    ../ucglib/csrc/ucg_scale.c
../ucglib/csrc/ucg_scale.c:96:11: warning: no previous prototype for 'ucg_dev_scale2x2' [-Wmissing-prototypes]
 ucg_int_t ucg_dev_scale2x2(ucg_t *ucg, ucg_int_t msg, void *data)
           ^~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_scale.c:52:14: warning: 'ucg_scale_2x2_send_next_half_byte' defined but not used [-Wunused-function]
  static void ucg_scale_2x2_send_next_half_byte(ucg_t *ucg, ucg_xy_t *xy, ucg_int_t msg, ucg_int_t len, ucg_int_t dir, uint8_t b)
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC    ../ucglib/csrc/ucg_dev_ic_ssd1351.c
../ucglib/csrc/ucg_dev_ic_ssd1351.c:64:11: warning: no previous prototype for 'ucg_handle_ssd1351_l90fx' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ssd1351_l90fx(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ssd1351.c:123:11: warning: no previous prototype for 'ucg_handle_ssd1351_l90tc' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ssd1351_l90tc(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ssd1351.c:232:11: warning: no previous prototype for 'ucg_handle_ssd1351_l90se' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ssd1351_l90se(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ssd1351.c: In function 'ucg_handle_ssd1351_l90se':
../ucglib/csrc/ucg_dev_ic_ssd1351.c:261:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i, j;
               ^
../ucglib/csrc/ucg_dev_ic_ssd1351.c:234:11: note: shadowed declaration is here
   uint8_t i;
           ^
../ucglib/csrc/ucg_dev_ic_ssd1351.c: In function 'ucg_ext_ssd1351_18':
../ucglib/csrc/ucg_dev_ic_ssd1351.c:362:63: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_ssd1351_18(ucg_t *ucg, ucg_int_t msg, void *data)
                                                               ^~~~
  CC    ../ucglib/csrc/ucg_dev_ic_ld50t6160.c
../ucglib/csrc/ucg_dev_ic_ld50t6160.c:226:11: warning: no previous prototype for 'ucg_handle_ld50t6160_l90se' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ld50t6160_l90se(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ld50t6160.c: In function 'ucg_handle_ld50t6160_l90se':
../ucglib/csrc/ucg_dev_ic_ld50t6160.c:243:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i;
               ^
../ucglib/csrc/ucg_dev_ic_ld50t6160.c:228:11: note: shadowed declaration is here
   uint8_t i;
           ^
../ucglib/csrc/ucg_dev_ic_ld50t6160.c: In function 'ucg_ext_ld50t6160_18':
../ucglib/csrc/ucg_dev_ic_ld50t6160.c:348:65: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_ld50t6160_18(ucg_t *ucg, ucg_int_t msg, void *data)
                                                                 ^~~~
  CC    ../ucglib/csrc/ucg_dev_tft_132x132_pcf8833.c
  CC    ../ucglib/csrc/ucg_dev_ic_ili9325.c
../ucglib/csrc/ucg_dev_ic_ili9325.c:175:11: warning: no previous prototype for 'xxxxxx_ucg_handle_ili9325_l90tc' [-Wmissing-prototypes]
 ucg_int_t xxxxxx_ucg_handle_ili9325_l90tc(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ili9325.c: In function 'ucg_handle_ili9325_l90se':
../ucglib/csrc/ucg_dev_ic_ili9325.c:387:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i;
               ^
../ucglib/csrc/ucg_dev_ic_ili9325.c:373:11: note: shadowed declaration is here
   uint8_t i;
           ^
../ucglib/csrc/ucg_dev_ic_ili9325.c: In function 'ucg_ext_ili9325_18':
../ucglib/csrc/ucg_dev_ic_ili9325.c:474:63: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_ili9325_18(ucg_t *ucg, ucg_int_t msg, void *data)
                                                               ^~~~
At top level:
../ucglib/csrc/ucg_dev_ic_ili9325.c:241:18: warning: 'ucg_handle_ili9325_l90tc' defined but not used [-Wunused-function]
 static ucg_int_t ucg_handle_ili9325_l90tc(ucg_t *ucg)
                  ^~~~~~~~~~~~~~~~~~~~~~~~
  CC    ../ucglib/csrc/ucg_dev_ic_ili9325_spi.c
../ucglib/csrc/ucg_dev_ic_ili9325_spi.c: In function 'ucg_handle_ili9325_l90se':
../ucglib/csrc/ucg_dev_ic_ili9325_spi.c:388:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i;
               ^
../ucglib/csrc/ucg_dev_ic_ili9325_spi.c:374:11: note: shadowed declaration is here
   uint8_t i;
           ^
../ucglib/csrc/ucg_dev_ic_ili9325_spi.c: In function 'ucg_ext_ili9325_spi_18':
../ucglib/csrc/ucg_dev_ic_ili9325_spi.c:474:67: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_ili9325_spi_18(ucg_t *ucg, ucg_int_t msg, void *data)
                                                                   ^~~~
At top level:
../ucglib/csrc/ucg_dev_ic_ili9325_spi.c:242:18: warning: 'ucg_handle_ili9325_l90tc' defined but not used [-Wunused-function]
 static ucg_int_t ucg_handle_ili9325_l90tc(ucg_t *ucg)
                  ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ili9325_spi.c:176:18: warning: 'xxxxxx_ucg_handle_ili9325_l90tc' defined but not used [-Wunused-function]
 static ucg_int_t xxxxxx_ucg_handle_ili9325_l90tc(ucg_t *ucg)
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC    ../ucglib/csrc/ucg_bitmap.c
  CC    ../ucglib/csrc/ucg_dev_ic_ssd1289.c
  CC    ../ucglib/csrc/ucg_polygon.c
../ucglib/csrc/ucg_polygon.c: In function 'pg_AddPolygonXY':
../ucglib/csrc/ucg_polygon.c:277:44: warning: unused parameter 'ucg' [-Wunused-parameter]
 void pg_AddPolygonXY(pg_struct *pg, ucg_t *ucg, int16_t x, int16_t y)
                                            ^~~
  CC    ../ucglib/csrc/ucg_line.c
  CC    ../ucglib/csrc/ucg_dev_tft_320x480_ili9486.c
  CC    ../ucglib/csrc/ucg_dev_ic_st7735.c
../ucglib/csrc/ucg_dev_ic_st7735.c:123:11: warning: no previous prototype for 'ucg_handle_st7735_l90fx' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_st7735_l90fx(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_st7735.c:167:11: warning: no previous prototype for 'ucg_handle_st7735_l90tc' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_st7735_l90tc(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_st7735.c:255:11: warning: no previous prototype for 'ucg_handle_st7735_l90se' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_st7735_l90se(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_st7735.c: In function 'ucg_handle_st7735_l90se':
../ucglib/csrc/ucg_dev_ic_st7735.c:272:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i;
               ^
../ucglib/csrc/ucg_dev_ic_st7735.c:257:11: note: shadowed declaration is here
   uint8_t i;
           ^
../ucglib/csrc/ucg_dev_ic_st7735.c: In function 'ucg_ext_st7735_18':
../ucglib/csrc/ucg_dev_ic_st7735.c:373:62: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_st7735_18(ucg_t *ucg, ucg_int_t msg, void *data)
                                                              ^~~~
  CC    ../ucglib/csrc/ucg_dev_msg_api.c
  CC    ../ucglib/csrc/ucg_dev_oled_128x128_ilsoft.c
  CC    ../ucglib/csrc/ucg_pixel_font_data.c
  CC    ../ucglib/csrc/ucg_circle.c
../ucglib/csrc/ucg_circle.c:73:6: warning: no previous prototype for 'ucg_draw_circle' [-Wmissing-prototypes]
 void ucg_draw_circle(ucg_t *ucg, ucg_int_t x0, ucg_int_t y0, ucg_int_t rad, uint8_t option)
      ^~~~~~~~~~~~~~~
../ucglib/csrc/ucg_circle.c:162:6: warning: no previous prototype for 'ucg_draw_disc' [-Wmissing-prototypes]
 void ucg_draw_disc(ucg_t *ucg, ucg_int_t x0, ucg_int_t y0, ucg_int_t rad, uint8_t option)
      ^~~~~~~~~~~~~
  CC    ../ucglib/csrc/ucg_dev_tft_128x160_st7735.c
  CC    ../ucglib/csrc/ucg_dev_ic_ili9163.c
../ucglib/csrc/ucg_dev_ic_ili9163.c:125:11: warning: no previous prototype for 'ucg_handle_ili9163_l90fx' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ili9163_l90fx(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ili9163.c:176:11: warning: no previous prototype for 'ucg_handle_ili9163_l90tc' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ili9163_l90tc(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ili9163.c:267:11: warning: no previous prototype for 'ucg_handle_ili9163_l90se' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ili9163_l90se(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ili9163.c: In function 'ucg_handle_ili9163_l90se':
../ucglib/csrc/ucg_dev_ic_ili9163.c:284:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i;
               ^
../ucglib/csrc/ucg_dev_ic_ili9163.c:269:11: note: shadowed declaration is here
   uint8_t i;
           ^
../ucglib/csrc/ucg_dev_ic_ili9163.c: In function 'ucg_ext_ili9163_18':
../ucglib/csrc/ucg_dev_ic_ili9163.c:392:63: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_ili9163_18(ucg_t *ucg, ucg_int_t msg, void *data)
                                                               ^~~~
  CC    ../ucglib/csrc/ucg_font.c
../ucglib/csrc/ucg_font.c:158:6: warning: no previous prototype for 'ucg_read_font_info' [-Wmissing-prototypes]
 void ucg_read_font_info(ucg_font_info_t *font_info, const ucg_fntpgm_uint8_t *font)
      ^~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c:277:8: warning: no previous prototype for 'ucg_font_GetLowerGDescent' [-Wmissing-prototypes]
 int8_t ucg_font_GetLowerGDescent(const void *font)
        ^~~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c:356:9: warning: redundant redeclaration of 'ucg_GetFontCapitalAHeight' [-Wredundant-decls]
 uint8_t ucg_GetFontCapitalAHeight(ucg_t *ucg) UCG_NOINLINE;
         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../ucglib/csrc/ucg_font.c:38:0:
../ucglib/csrc/ucg.h:731:9: note: previous declaration of 'ucg_GetFontCapitalAHeight' was here
 uint8_t ucg_GetFontCapitalAHeight(ucg_t *ucg) UCG_NOINLINE;
         ^~~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c:367:9: warning: no previous prototype for 'ucg_font_decode_get_unsigned_bits' [-Wmissing-prototypes]
 uint8_t ucg_font_decode_get_unsigned_bits(ucg_font_decode_t *f, uint8_t cnt)
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c:412:8: warning: no previous prototype for 'ucg_font_decode_get_signed_bits' [-Wmissing-prototypes]
 int8_t ucg_font_decode_get_signed_bits(ucg_font_decode_t *f, uint8_t cnt)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c:562:6: warning: no previous prototype for 'ucg_font_decode_len' [-Wmissing-prototypes]
 void ucg_font_decode_len(ucg_t *ucg, uint8_t len, uint8_t is_foreground)
      ^~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c:670:8: warning: no previous prototype for 'ucg_font_decode_glyph' [-Wmissing-prototypes]
 int8_t ucg_font_decode_glyph(ucg_t *ucg, const uint8_t *glyph_data)
        ^~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c:721:16: warning: no previous prototype for 'ucg_font_get_glyph_data' [-Wmissing-prototypes]
 const uint8_t *ucg_font_get_glyph_data(ucg_t *ucg, uint8_t encoding)
                ^~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c:748:11: warning: no previous prototype for 'ucg_font_draw_glyph' [-Wmissing-prototypes]
 ucg_int_t ucg_font_draw_glyph(ucg_t *ucg, ucg_int_t x, ucg_int_t y, uint8_t dir, uint8_t encoding)
           ^~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c:864:6: warning: no previous prototype for 'ucg_UpdateRefHeight' [-Wmissing-prototypes]
 void ucg_UpdateRefHeight(ucg_t *ucg)
      ^~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c:910:11: warning: no previous prototype for 'ucg_font_calc_vref_font' [-Wmissing-prototypes]
 ucg_int_t ucg_font_calc_vref_font(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c: In function 'ucg_font_calc_vref_font':
../ucglib/csrc/ucg_font.c:910:42: warning: unused parameter 'ucg' [-Wunused-parameter]
 ucg_int_t ucg_font_calc_vref_font(ucg_t *ucg)
                                          ^~~
../ucglib/csrc/ucg_font.c: At top level:
../ucglib/csrc/ucg_font.c:921:11: warning: no previous prototype for 'ucg_font_calc_vref_bottom' [-Wmissing-prototypes]
 ucg_int_t ucg_font_calc_vref_bottom(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c:931:11: warning: no previous prototype for 'ucg_font_calc_vref_top' [-Wmissing-prototypes]
 ucg_int_t ucg_font_calc_vref_top(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_font.c:945:11: warning: no previous prototype for 'ucg_font_calc_vref_center' [-Wmissing-prototypes]
 ucg_int_t ucg_font_calc_vref_center(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~~
  CC    ../ucglib/csrc/ucg_dev_oled_128x128_univision.c
  CC    ../ucglib/csrc/ucg_dev_oled_96x64_univision.c
  CC    ../ucglib/csrc/ucg_dev_tft_240x400_hx8352c.c
  CC    ../ucglib/csrc/ucg_dev_tft_128x128_ili9163.c
  CC    ../ucglib/csrc/ucg_dev_default_cb.c
../ucglib/csrc/ucg_dev_default_cb.c: In function 'ucg_ext_none':
../ucglib/csrc/ucg_dev_default_cb.c:60:31: warning: unused parameter 'ucg' [-Wunused-parameter]
 ucg_int_t ucg_ext_none(ucg_t *ucg, ucg_int_t msg, void *data)
                               ^~~
../ucglib/csrc/ucg_dev_default_cb.c:60:46: warning: unused parameter 'msg' [-Wunused-parameter]
 ucg_int_t ucg_ext_none(ucg_t *ucg, ucg_int_t msg, void *data)
                                              ^~~
../ucglib/csrc/ucg_dev_default_cb.c:60:57: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_none(ucg_t *ucg, ucg_int_t msg, void *data)
                                                         ^~~~
../ucglib/csrc/ucg_dev_default_cb.c: In function 'ucg_handle_l90se':
../ucglib/csrc/ucg_dev_default_cb.c:220:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i, j;
               ^
../ucglib/csrc/ucg_dev_default_cb.c:206:11: note: shadowed declaration is here
   uint8_t i;
           ^
  CC    ../ucglib/csrc/ucg_dev_oled_160x128_samsung.c
  CC    ../ucglib/csrc/ucg_dev_ic_seps225.c
../ucglib/csrc/ucg_dev_ic_seps225.c:114:11: warning: no previous prototype for 'ucg_handle_seps225_l90fx' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_seps225_l90fx(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_seps225.c:168:11: warning: no previous prototype for 'ucg_handle_seps225_l90se' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_seps225_l90se(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_seps225.c: In function 'ucg_handle_seps225_l90se':
../ucglib/csrc/ucg_dev_ic_seps225.c:197:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i, j;
               ^
../ucglib/csrc/ucg_dev_ic_seps225.c:170:11: note: shadowed declaration is here
   uint8_t i;
           ^
../ucglib/csrc/ucg_dev_ic_seps225.c: In function 'ucg_ext_seps225_16':
../ucglib/csrc/ucg_dev_ic_seps225.c:311:63: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_seps225_16(ucg_t *ucg, ucg_int_t msg, void *data)
                                                               ^~~~
  CC    ../ucglib/csrc/ucg_ccs.c
  CC    ../ucglib/csrc/ucg_dev_tft_240x320_itdb02.c
  CC    ../ucglib/csrc/ucg_dev_ic_ili9486.c
../ucglib/csrc/ucg_dev_ic_ili9486.c:114:11: warning: no previous prototype for 'ucg_handle_ili9486_l90fx' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ili9486_l90fx(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ili9486.c:158:11: warning: no previous prototype for 'ucg_handle_ili9486_l90tc' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ili9486_l90tc(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ili9486.c:250:11: warning: no previous prototype for 'ucg_handle_ili9486_l90se' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ili9486_l90se(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ili9486.c: In function 'ucg_handle_ili9486_l90se':
../ucglib/csrc/ucg_dev_ic_ili9486.c:267:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i;
               ^
../ucglib/csrc/ucg_dev_ic_ili9486.c:252:11: note: shadowed declaration is here
   uint8_t i;
           ^
../ucglib/csrc/ucg_dev_ic_ili9486.c: In function 'ucg_ext_ili9486_18':
../ucglib/csrc/ucg_dev_ic_ili9486.c:359:63: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_ili9486_18(ucg_t *ucg, ucg_int_t msg, void *data)
                                                               ^~~~
  CC    ../ucglib/csrc/ucg_dev_ic_ssd1331.c
../ucglib/csrc/ucg_dev_ic_ssd1331.c:63:11: warning: no previous prototype for 'ucg_handle_ssd1331_l90fx' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ssd1331_l90fx(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ssd1331.c:122:11: warning: no previous prototype for 'ucg_handle_ssd1331_l90tc' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ssd1331_l90tc(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ssd1331.c:231:11: warning: no previous prototype for 'ucg_handle_ssd1331_l90se' [-Wmissing-prototypes]
 ucg_int_t ucg_handle_ssd1331_l90se(ucg_t *ucg)
           ^~~~~~~~~~~~~~~~~~~~~~~~
../ucglib/csrc/ucg_dev_ic_ssd1331.c: In function 'ucg_handle_ssd1331_l90se':
../ucglib/csrc/ucg_dev_ic_ssd1331.c:260:15: warning: declaration of 'i' shadows a previous local [-Wshadow]
     ucg_int_t i, j;
               ^
../ucglib/csrc/ucg_dev_ic_ssd1331.c:233:11: note: shadowed declaration is here
   uint8_t i;
           ^
../ucglib/csrc/ucg_dev_ic_ssd1331.c: In function 'ucg_ext_ssd1331_18':
../ucglib/csrc/ucg_dev_ic_ssd1331.c:362:63: warning: unused parameter 'data' [-Wunused-parameter]
 ucg_int_t ucg_ext_ssd1331_18(ucg_t *ucg, ucg_int_t msg, void *data)
                                                               ^~~~
olikraus commented 5 years ago

Actually I do not work on ucglib any more...

fornellas commented 5 years ago

Oh, sorry about that. So, does this mean the project is stale now? Maybe I can help carry it on if you want. I like ucglib a lot. I'm using it in a new project, for which I'd love to implement frame buffer to ucglib, but I'd feel less inclined to do it there's no chance for merging upstream.

olikraus commented 5 years ago

I would be happy if someone would continue here... However I am not sure how much I could contribute here. At least I could test the old behavior... And maybe I could also integrate the u8g2 font render engine... so that we can takeover all the latest fonts from u8g2.

fornellas commented 5 years ago

That would be great! You do have experience on the problem domain, even small comments on pull requests are good.

I'll do this PR for fixing warnings for starter.