fix unused variable warning with FIXMATH_FAST_SIN (#35)

This commit is contained in:
Johannes Ringler 2022-02-10 07:54:05 +01:00 committed by GitHub
parent a1e92c7c5e
commit 29ddf649e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -16,8 +16,11 @@ static fix16_t _fix16_atan_cache_value[4096] = { 0 };
fix16_t fix16_sin_parabola(fix16_t inAngle)
{
fix16_t abs_inAngle, abs_retval, retval;
fix16_t abs_inAngle, retval;
fix16_t mask;
#ifndef FIXMATH_FAST_SIN
fix16_t abs_retval;
#endif
/* Absolute function */
mask = (inAngle >> (sizeof(fix16_t)*CHAR_BIT-1));