summaryrefslogtreecommitdiffstats
path: root/quantum/audio
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-02-16 11:37:46 -0500
committerJack Humbert <jack.humb@gmail.com>2017-02-16 11:37:46 -0500
commit1ac5dc9e524444ef98cfab1d9822151a6bfb9621 (patch)
treefab688c920ee5c04824c7270c0299ed94d6f85fd /quantum/audio
parent15dc540cac293b6f2e1433b701408c89e72c52ec (diff)
fix travis and reduce warnings
Diffstat (limited to 'quantum/audio')
-rw-r--r--quantum/audio/voices.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/quantum/audio/voices.c b/quantum/audio/voices.c
index 8326e91eaa..c2edb75f01 100644
--- a/quantum/audio/voices.c
+++ b/quantum/audio/voices.c
@@ -24,6 +24,7 @@ void voice_deiterate() {
float voice_envelope(float frequency) {
// envelope_index ranges from 0 to 0xFFFF, which is preserved at 880.0 Hz
+ __attribute__ ((unused))
uint16_t compensated_index = (uint16_t)((float)envelope_index * (880.0 / frequency));
switch (voice) {