Skip to content

Commit

Permalink
Fixed warnings in ARM math library
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbudden committed Mar 6, 2017
1 parent f445d27 commit b8d6fb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/main/CMSIS/CM4/CoreSupport/arm_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
3 changes: 3 additions & 0 deletions lib/main/CMSIS/CM7/Include/arm_math.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit b8d6fb2

Please sign in to comment.