Merge pull request #2572 from martinbudden/bf_arm_math_warnings
Fixed warnings in ARM math library
This commit is contained in:
commit
13ddcdb9cf
2
Makefile
2
Makefile
|
@ -880,7 +880,7 @@ else ifeq ($(TARGET),$(filter $(TARGET),$(F1_TARGETS)))
|
|||
TARGET_SRC := $(STARTUP_SRC) $(STM32F10x_COMMON_SRC) $(TARGET_SRC)
|
||||
endif
|
||||
|
||||
ifneq ($(filter GYROFFT,$(FEATURES)),)
|
||||
ifneq ($(filter $(TARGET),$(F4_TARGETS) $(F7_TARGETS)),)
|
||||
DSPLIB := $(ROOT)/lib/main/DSP_Lib
|
||||
DEVICE_FLAGS += -DARM_MATH_CM4 -DARM_MATH_MATRIX_CHECK -DARM_MATH_ROUNDING -D__FPU_PRESENT=1 -DUNALIGNED_SUPPORT_DISABLE
|
||||
|
||||
|
|
|
@ -5215,7 +5215,7 @@ void arm_rfft_fast_f32(
|
|||
#pragma GCC diagnostic ignored "-Wpedantic"
|
||||
/* saturate the output */
|
||||
out = (q15_t) (__SSAT((acc >> 15), 16));
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/* Update state */
|
||||
S->state[1] = S->state[0];
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue