diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-04-06 21:23:38 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-04-06 21:26:53 -0400 |
commit | 7b25c32388770b07dce030812a46505da2696304 (patch) | |
tree | 48e6d1e4b4291e2a0a060a805f1428db09cedab7 /firmware/asm/lcd-as-memframe.c | |
parent | 76a9a524c08ffe6b76321b556b4872cf1b75d76d (diff) | |
download | rockbox-7b25c32388770b07dce030812a46505da2696304.tar.gz rockbox-7b25c32388770b07dce030812a46505da2696304.zip |
lcd: Do not alias lcd_write_yuv420_lines_odither() to lcd_write_yuv420_lines()
Causes a warning with GCC8 as the protoypes are not the same.
Only affects targets that lack an asm-optimized version (eg mips)
Change-Id: I22e4657f3fb71ebbb915e4f290bf3670b1b87636
Diffstat (limited to 'firmware/asm/lcd-as-memframe.c')
-rw-r--r-- | firmware/asm/lcd-as-memframe.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/firmware/asm/lcd-as-memframe.c b/firmware/asm/lcd-as-memframe.c index fb31fa1953..8ea9e68a39 100644 --- a/firmware/asm/lcd-as-memframe.c +++ b/firmware/asm/lcd-as-memframe.c | |||
@@ -25,10 +25,10 @@ static inline int clamp(int val, int min, int max) | |||
25 | return val; | 25 | return val; |
26 | } | 26 | } |
27 | 27 | ||
28 | extern void lcd_write_yuv420_lines(fb_data *dst, | 28 | void lcd_write_yuv420_lines(fb_data *dst, |
29 | unsigned char const * const src[3], | 29 | unsigned char const * const src[3], |
30 | int width, | 30 | int width, |
31 | int stride) | 31 | int stride) |
32 | { | 32 | { |
33 | /* Draw a partial YUV colour bitmap - similiar behavior to lcd_blit_yuv | 33 | /* Draw a partial YUV colour bitmap - similiar behavior to lcd_blit_yuv |
34 | in the core */ | 34 | in the core */ |
@@ -176,4 +176,6 @@ void lcd_write_yuv420_lines_odither(fb_data *dst, | |||
176 | unsigned char const * const src[3], | 176 | unsigned char const * const src[3], |
177 | int width, int stride, | 177 | int width, int stride, |
178 | int x_screen, int y_screen) | 178 | int x_screen, int y_screen) |
179 | __attribute__((alias("lcd_write_yuv420_lines"))); | 179 | { |
180 | return lcd_write_yuv420_lines(dst, src, width, stride); | ||
181 | } | ||