I am receiving the following compiler warning when compiling my project:
Warning cast increases required alignment of target type [-Wcast-align] ...\src\ASF\thirdparty\CMSIS\Include\arm_math.h 483
Line 483 of arm_math.h is here:
#define __SIMD32_CONST(addr) ((__SIMD32_TYPE *)(addr))
Of possible relevance are earlier lines (453 - 456):
#elif defined ( __GNUC__ ) #define __SIMD32_TYPE int32_t #define CMSIS_UNUSED __attribute__((unused)) #define CMSIS_INLINE __attribute__((always_inline))
As far as I know, arm_math.h is unmodified from what was provided with the ASF--I've not gone in and changed anything in there. I also searched my entire solution, and the statement "__SIMD32_CONST" does not appear anywhere outside of arm_math.h.
I am using Atmel Studio 7.0.2397. My project is built on ASF 3.49.1, targeting a SAM E70 chip, and using gcc 6.3.1.
I do use the math function, exp2, in one of my functions within a C file, so I include "arm_math.h" to gain access to it. Should I be concerned about this compiler warning? Is it a bug in ASF? Should I ignore it? Thanks!