diff --git a/Include/arm_math_types.h b/Include/arm_math_types.h index 01e18a75..0c87f7f9 100755 --- a/Include/arm_math_types.h +++ b/Include/arm_math_types.h @@ -67,10 +67,8 @@ extern "C" #elif defined (__GNUC_PYTHON__) #include #define __ALIGNED(x) __attribute__((aligned(x))) -#define __STATIC_FORCEINLINE static __attribute__((inline)) -#define __STATIC_INLINE static __attribute__((inline)) -#pragma GCC diagnostic ignored "-Wunused-function" -#pragma GCC diagnostic ignored "-Wattributes" +#define __STATIC_FORCEINLINE static inline __attribute__((always_inline)) +#define __STATIC_INLINE static inline #else #include "cmsis_compiler.h"