Error on "Get started". How to correct it?

I’m trying to use LvGL libs on my projects. I need only graphics, no touch etc, I’m using a STM32 H5 cpu.
Reading the get started
register a function which can copy the rendered image to an area of your display
the example says
void my_disp_flush(lv_display_t * disp, const lv_area_t * area, lv_color_t * color_p);
bu when I try to register the function using
lv_display_set_flush_cb(display, my_disp_flush);
I got a warning: the latest parameter of the function isn’t a lv_color_t* but a ** uint8_t * **

Where it the issue? How I can correct it? Bacause it doesn’t work.
Thanks.

Hey, on your code the function that causes problem is static?