Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kriegsman <kriegsman@tr.org>2015-01-15 08:55:19 +0300
committerMark Kriegsman <kriegsman@tr.org>2015-01-15 08:55:19 +0300
commit83716a9a0341f96cc68e5cfba55c46837563736e (patch)
tree5cfd060bc54380a319da83cd26c181f53b37f117
parent9546b2b7ae5f0d312116737760675cc3e0f09526 (diff)
Silence a warning in scale16by8 in AVR asm.
-rw-r--r--lib8tion.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib8tion.h b/lib8tion.h
index f7c71692..e774d0cc 100644
--- a/lib8tion.h
+++ b/lib8tion.h
@@ -897,12 +897,12 @@ LIB8STATIC uint16_t scale16by8( uint16_t i, fract8 scale )
#elif SCALE16BY8_AVRASM == 1
LIB8STATIC uint16_t scale16by8( uint16_t i, fract8 scale )
{
- uint16_t result;
+ uint16_t result = 0;
asm volatile(
// result.A = HighByte(i.A x j )
" mul %A[i], %[scale] \n\t"
" mov %A[result], r1 \n\t"
- " clr %B[result] \n\t"
+ //" clr %B[result] \n\t"
// result.A-B += i.B x j
" mul %B[i], %[scale] \n\t"