This fixes following unused-parameter warning: psplash-fb.c: In function 'psplash_fb_text_size': psplash-fb.c:464:43: warning: unused parameter 'fb' [-Wunused-parameter]
Signed-off-by: Richard Leitner <richard.leit...@skidata.com> --- psplash-fb.c | 3 +-- psplash-fb.h | 3 +-- psplash.c | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/psplash-fb.c b/psplash-fb.c index cdcbc19..8daaf6f 100644 --- a/psplash-fb.c +++ b/psplash-fb.c @@ -461,8 +461,7 @@ psplash_font_glyph (const PSplashFont *font, wchar_t wc, u_int32_t **bitmap) } void -psplash_fb_text_size (PSplashFB *fb, - int *width, +psplash_fb_text_size (int *width, int *height, const PSplashFont *font, const char *text) diff --git a/psplash-fb.h b/psplash-fb.h index c6c3144..a4a0f4c 100644 --- a/psplash-fb.h +++ b/psplash-fb.h @@ -78,8 +78,7 @@ psplash_fb_draw_image (PSplashFB *fb, uint8 *rle_data); void -psplash_fb_text_size (PSplashFB *fb, - int *width, +psplash_fb_text_size (int *width, int *height, const PSplashFont *font, const char *text); diff --git a/psplash.c b/psplash.c index 185f38e..65cf514 100644 --- a/psplash.c +++ b/psplash.c @@ -45,7 +45,7 @@ psplash_draw_msg (PSplashFB *fb, const char *msg) { int w, h; - psplash_fb_text_size (fb, &w, &h, &radeon_font, msg); + psplash_fb_text_size (&w, &h, &radeon_font, msg); DBG("displaying '%s' %ix%i\n", msg, w, h); -- 2.1.4 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto