Skip to content

Commit ba9203a

Browse files
committed
Fix warning
1 parent 61c081b commit ba9203a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/c/helpers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ typedef union {
1414
uint32_t c;
1515
} colour;
1616

17-
__attribute__((always_inline)) uint32_t alpha(uint32_t sa, uint32_t da) {
17+
__attribute__((always_inline)) inline uint32_t alpha(uint32_t sa, uint32_t da) {
1818
return ((sa + 1) * (da)) >> 8;
1919
}
2020

21-
__attribute__((always_inline)) uint8_t blend_channel(uint8_t s, uint8_t d, uint8_t a) {
21+
__attribute__((always_inline)) inline uint8_t blend_channel(uint8_t s, uint8_t d, uint8_t a) {
2222
return d + ((a * (s - d) + 127) >> 8);
2323
}
2424

0 commit comments

Comments
 (0)