In file included from lib/gui/png.c:9: include/gui/image_renderer.h: In function 'image_renderer_file': include/gui/image_renderer.h:67:29: warning: passing argument 1 of 'image_renderer_image' from incompatible pointer type [-Wincompatible-pointer-types] ret = image_renderer_image(sc, s, img); include/gui/image_renderer.h:56:42: note: expected 'struct surface *' but argument is of type 'struct screen *' int image_renderer_image(struct surface *s, struct image *img); include/gui/image_renderer.h:67:33: warning: passing argument 2 of 'image_renderer_image' from incompatible pointer type [-Wincompatible-pointer-types] ret = image_renderer_image(sc, s, img); include/gui/image_renderer.h:56:59: note: expected 'struct image *' but argumentis of type 'struct surface *' int image_renderer_image(struct surface *s, struct image *img); include/gui/image_renderer.h:67:8: error: too many arguments to function 'image_renderer_image' ret = image_renderer_image(sc, s, img); include/gui/image_renderer.h:56:5: note: declared here int image_renderer_image(struct surface *s, struct image *img); Fixes: 3fa8d74abea3 ("gui: introduce screen and surface to factorize and simplify code") Signed-off-by: Alexander Shiyan <eagle.alexander923@xxxxxxxxx> --- include/gui/image_renderer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/gui/image_renderer.h b/include/gui/image_renderer.h index bfdea1b14e..323ad741b3 100644 --- a/include/gui/image_renderer.h +++ b/include/gui/image_renderer.h @@ -53,7 +53,10 @@ static inline struct image *image_renderer_open(const char* file) static inline void image_renderer_close(struct image *img) {} -int image_renderer_image(struct surface *s, struct image *img); +static inline int image_renderer_image(struct screen *sc, struct surface *s, struct image *img) +{ + return -EINVAL; +} #endif static inline int image_renderer_file(struct screen *sc, struct surface *s, const char* file) -- 2.32.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox