[PATCH] fix-warning: fix it to fit c90.

DU HUANPENG opentkernel at 163.com
Wed Apr 27 04:13:31 UTC 2016


From: Du Huanpeng <u74147 at gmail.com>

---
 cpukit/score/cpu/arm/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/arm/cpu.c b/cpukit/score/cpu/arm/cpu.c
index 944ca63..c9dc22e 100644
--- a/cpukit/score/cpu/arm/cpu.c
+++ b/cpukit/score/cpu/arm/cpu.c
@@ -135,8 +135,8 @@ void _CPU_ISR_Set_level( uint32_t level )
 
 uint32_t _CPU_ISR_Get_level( void )
 {
-  ARM_SWITCH_REGISTERS;
   uint32_t level;
+  ARM_SWITCH_REGISTERS;
 
   __asm__ volatile (
     ARM_SWITCH_TO_ARM
-- 
2.7.4




More information about the devel mailing list