summaryrefslogtreecommitdiffstats
path: root/quantum
diff options
context:
space:
mode:
authorSergey Vlasov <sigprof@gmail.com>2023-02-12 09:14:34 +0300
committerGitHub <noreply@github.com>2023-02-12 17:14:34 +1100
commit584b7cf801f98d58aefe5a9bbc4a163aba4c1b74 (patch)
tree16a82839ac645b3adf5775377583fbcbd27a8ed5 /quantum
parentb1f4d49c43e5034b44e34c5ee6e2d9a72195e41d (diff)
Fix build failures with `OPT = 0` due to inline functions (#19767)
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'quantum')
-rw-r--r--quantum/mousekey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/mousekey.c b/quantum/mousekey.c
index 703fb39fa6..df8aa613be 100644
--- a/quantum/mousekey.c
+++ b/quantum/mousekey.c
@@ -24,7 +24,7 @@
#include "debug.h"
#include "mousekey.h"
-inline int8_t times_inv_sqrt2(int8_t x) {
+static inline int8_t times_inv_sqrt2(int8_t x) {
// 181/256 is pretty close to 1/sqrt(2)
// 0.70703125 0.707106781
// 1 too small for x=99 and x=198