Skip to content

Commit

Permalink
Remove static keyword from fixedpt_mul and fixedpt_cstr
Browse files Browse the repository at this point in the history
sensitivity is not static, so this fixes related warnings in GCC
  • Loading branch information
gnusenpai committed Dec 8, 2024
1 parent 07c8bbb commit d272a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/fixedptc.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ typedef __uint128_t fixedptud;
((float)((T) * ((float)(1) / (float)(1L << FIXEDPT_FBITS))))

/* Multiplies two fixedpt numbers, returns the result. */
static inline fixedpt fixedpt_mul(fixedpt A, fixedpt B) {
inline fixedpt fixedpt_mul(fixedpt A, fixedpt B) {
return (((fixedptd)A * (fixedptd)B) >> FIXEDPT_FBITS);
}

Expand Down Expand Up @@ -210,7 +210,7 @@ static inline void fixedpt_str(fixedpt A, char *str, int max_dec) {

/* Converts the given fixedpt number into a string, using a static
* (non-threadsafe) string buffer */
static inline char *fixedpt_cstr(const fixedpt A, const int max_dec) {
inline char *fixedpt_cstr(const fixedpt A, const int max_dec) {
static char str[25];

fixedpt_str(A, str, max_dec);
Expand Down

0 comments on commit d272a78

Please # to comment.