aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports
diff options
context:
space:
mode:
Diffstat (limited to 'os/ports')
-rw-r--r--os/ports/common/ARMCMx/CMSIS/include/core_cmFunc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/os/ports/common/ARMCMx/CMSIS/include/core_cmFunc.h b/os/ports/common/ARMCMx/CMSIS/include/core_cmFunc.h
index c999b1c83..ecf22a6bf 100644
--- a/os/ports/common/ARMCMx/CMSIS/include/core_cmFunc.h
+++ b/os/ports/common/ARMCMx/CMSIS/include/core_cmFunc.h
@@ -586,6 +586,9 @@ __attribute__( ( always_inline ) ) static __INLINE void __set_FPSCR(uint32_t fps
{
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
__ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) );
+#else
+/* CHIBIOS FIX */
+ (void)fpscr;
#endif
}