mirror of
https://github.com/mintsuki/flanterm
synced 2024-11-30 08:33:21 +03:00
backends/fb: Fix compiler warning regarding inlining
This commit is contained in:
parent
98e77f8591
commit
1cee4eb472
@ -401,7 +401,7 @@ static const uint8_t builtin_font[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#ifdef FLANTERM_FB_SUPPORT_BPP
|
#ifdef FLANTERM_FB_SUPPORT_BPP
|
||||||
static __attribute__((always_inline)) uint32_t convert_colour(struct flanterm_context *_ctx, uint32_t colour) {
|
static inline __attribute__((always_inline)) uint32_t convert_colour(struct flanterm_context *_ctx, uint32_t colour) {
|
||||||
struct flanterm_fb_context *ctx = (void *)_ctx;
|
struct flanterm_fb_context *ctx = (void *)_ctx;
|
||||||
uint32_t r = (colour >> 16) & 0xff;
|
uint32_t r = (colour >> 16) & 0xff;
|
||||||
uint32_t g = (colour >> 8) & 0xff;
|
uint32_t g = (colour >> 8) & 0xff;
|
||||||
|
Loading…
Reference in New Issue
Block a user