1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Fixed warnings in ARM math library

This commit is contained in:
Martin Budden 2017-03-06 06:11:49 +00:00
parent f445d27fd6
commit b8d6fb29df
3 changed files with 5 additions and 2 deletions

View file

@ -4903,8 +4903,11 @@ void arm_rfft_fast_f32(
/* acc += y[n-1] */
acc += (q31_t) S->state[2] << 15;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
/* saturate the output */
out = (q15_t) (__SSAT((acc >> 15), 16));
#pragma GCC diagnostic pop
/* Update state */
S->state[1] = S->state[0];