aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Leitner <richard.leitner@skidata.com>2016-04-14 12:58:35 +0200
committerRoss Burton <ross.burton@intel.com>2016-04-14 12:30:01 +0100
commit121720e4bb1333b792704a8945c3fc2ad7732600 (patch)
treed2ac1501c02a4fff516c442b9ce8c9448f9b50c8
parent9f6baa64cdf35e347505c35f9ecd3b08d012c6c3 (diff)
downloadpsplash-121720e4bb1333b792704a8945c3fc2ad7732600.tar.gz
psplash-121720e4bb1333b792704a8945c3fc2ad7732600.tar.bz2
psplash-121720e4bb1333b792704a8945c3fc2ad7732600.zip
psplash-fb: remove unused parameter from psplash_fb_text_size
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.leitner@skidata.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--psplash-fb.c3
-rw-r--r--psplash-fb.h3
-rw-r--r--psplash.c2
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);