Explorar o código

Silenced compiler warning.

Kjell Eirik Andersen %!s(int64=9) %!d(string=hai) anos
pai
achega
34d27d4932
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 2 0
      CMSIS/Core/Include/cmsis_armcc.h
  2. 2 0
      CMSIS/Core/Include/cmsis_gcc.h

+ 2 - 0
CMSIS/Core/Include/cmsis_armcc.h

@@ -344,6 +344,8 @@ __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
      (defined (__FPU_USED   ) && (__FPU_USED    == 1U))     )
      (defined (__FPU_USED   ) && (__FPU_USED    == 1U))     )
   register uint32_t __regfpscr         __ASM("fpscr");
   register uint32_t __regfpscr         __ASM("fpscr");
   __regfpscr = (fpscr);
   __regfpscr = (fpscr);
+#else
+  (void)fpscr;
 #endif
 #endif
 }
 }
 
 

+ 2 - 0
CMSIS/Core/Include/cmsis_gcc.h

@@ -652,6 +652,8 @@ __attribute__((always_inline)) __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
 #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
 #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
      (defined (__FPU_USED   ) && (__FPU_USED    == 1U))     )
      (defined (__FPU_USED   ) && (__FPU_USED    == 1U))     )
   __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc", "memory");
   __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc", "memory");
+#else
+  (void)fpscr;
 #endif
 #endif
 }
 }